File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import { execFileUtf8 } from "./exec-file.js";
2323import { isCurrentProcessLaunchdServiceLabel } from "./launchd-current-service.js" ;
2424import {
2525 buildLaunchAgentPlist as buildLaunchAgentPlistImpl ,
26+ LAUNCH_AGENT_EXIT_TIMEOUT_SECONDS ,
2627 readLaunchAgentProgramArgumentsFromFile ,
2728} from "./launchd-plist.js" ;
2829import { scheduleDetachedLaunchdRestartHandoff } from "./launchd-restart-handoff.js" ;
@@ -50,7 +51,7 @@ const LAUNCH_AGENT_ENV_DIR_NAME = "service-env";
5051const LAUNCH_AGENT_STDERR_PATH = "/dev/null" ;
5152const OPENCLAW_UPDATE_LAUNCHD_LABEL_PREFIX = "ai.openclaw.update." ;
5253const OPENCLAW_MANUAL_UPDATE_LAUNCHD_LABEL_PATTERN = / ^ a i \. o p e n c l a w \. m a n u a l - u p d a t e \. \d + $ / ;
53- const LAUNCH_AGENT_STOP_PORT_RELEASE_TIMEOUT_MS = 2_000 ;
54+ const LAUNCH_AGENT_STOP_PORT_RELEASE_TIMEOUT_MS = LAUNCH_AGENT_EXIT_TIMEOUT_SECONDS * 1_000 ;
5455const LAUNCH_AGENT_STOP_PORT_RELEASE_POLL_MS = 100 ;
5556
5657export type StaleOpenClawUpdateLaunchdJob = {
You can’t perform that action at this time.
0 commit comments