feature/IO-3205-Paint-Scale-Integrations: Adjust keep alive timer to 15 mins from 5
This commit is contained in:
@@ -7,6 +7,9 @@ import log from "electron-log/main";
|
||||
|
||||
const execPromise = promisify(exec);
|
||||
|
||||
// Define the interval as a variable (in seconds)
|
||||
const KEEP_ALIVE_INTERVAL_SECONDS = 15 * 60; // 15 minutes
|
||||
|
||||
export async function setupKeepAliveAgent(): Promise<void> {
|
||||
const plistContent = `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
@@ -22,7 +25,7 @@ export async function setupKeepAliveAgent(): Promise<void> {
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>StartInterval</key>
|
||||
<integer>300</integer>
|
||||
<integer>${KEEP_ALIVE_INTERVAL_SECONDS}</integer>
|
||||
</dict>
|
||||
</plist>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user