File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,14 +8,10 @@ import {
88} from "../daemon/constants.js" ;
99import { createSubsystemLogger } from "../logging/subsystem.js" ;
1010import { cleanStaleGatewayProcessesSync , findGatewayPidsOnPortSync } from "./restart-stale-pids.js" ;
11+ import type { RestartAttempt } from "./restart.types.js" ;
1112import { relaunchGatewayScheduledTask } from "./windows-task-restart.js" ;
1213
13- export type RestartAttempt = {
14- ok : boolean ;
15- method : "launchctl" | "systemd" | "schtasks" | "supervisor" ;
16- detail ?: string ;
17- tried ?: string [ ] ;
18- } ;
14+ export type { RestartAttempt } from "./restart.types.js" ;
1915
2016const SPAWN_TIMEOUT_MS = 2000 ;
2117const SIGUSR1_AUTH_GRACE_MS = 5000 ;
Original file line number Diff line number Diff line change 1+ export type RestartAttempt = {
2+ ok : boolean ;
3+ method : "launchctl" | "systemd" | "schtasks" | "supervisor" ;
4+ detail ?: string ;
5+ tried ?: string [ ] ;
6+ } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { quoteCmdScriptArg } from "../daemon/cmd-argv.js";
66import { resolveGatewayWindowsTaskName } from "../daemon/constants.js" ;
77import { resolveTaskScriptPath } from "../daemon/schtasks.js" ;
88import { formatErrorMessage } from "./errors.js" ;
9- import type { RestartAttempt } from "./restart.js" ;
9+ import type { RestartAttempt } from "./restart.types. js" ;
1010import { resolvePreferredOpenClawTmpDir } from "./tmp-openclaw-dir.js" ;
1111
1212const TASK_RESTART_RETRY_LIMIT = 12 ;
You can’t perform that action at this time.
0 commit comments