mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:10:49 +00:00
fix(daemon): honor launchd running state without pid
This commit is contained in:
@@ -519,7 +519,10 @@ async function probeLaunchAgentState(serviceTarget: string): Promise<LaunchAgent
|
||||
};
|
||||
}
|
||||
const runtime = parseLaunchctlPrint(probe.stdout || probe.stderr || "");
|
||||
if (typeof runtime.pid === "number" && runtime.pid > 1) {
|
||||
if (
|
||||
normalizeLowercaseStringOrEmpty(runtime.state) === "running" ||
|
||||
(typeof runtime.pid === "number" && runtime.pid > 1)
|
||||
) {
|
||||
return { state: "running" };
|
||||
}
|
||||
return { state: "stopped" };
|
||||
|
||||
Reference in New Issue
Block a user