fix: restart Windows gateway via Scheduled Task (#38825) (#38825)

This commit is contained in:
Ayaan Zaidi
2026-03-07 18:00:38 +05:30
committed by GitHub
parent 26c9796736
commit 05c240fad6
12 changed files with 371 additions and 54 deletions

View File

@@ -278,6 +278,7 @@ describe("buildServiceEnvironment", () => {
expect(env.OPENCLAW_SERVICE_KIND).toBe("gateway");
expect(typeof env.OPENCLAW_SERVICE_VERSION).toBe("string");
expect(env.OPENCLAW_SYSTEMD_UNIT).toBe("openclaw-gateway.service");
expect(env.OPENCLAW_WINDOWS_TASK_NAME).toBe("OpenClaw Gateway");
if (process.platform === "darwin") {
expect(env.OPENCLAW_LAUNCHD_LABEL).toBe("ai.openclaw.gateway");
}
@@ -305,6 +306,7 @@ describe("buildServiceEnvironment", () => {
port: 18789,
});
expect(env.OPENCLAW_SYSTEMD_UNIT).toBe("openclaw-gateway-work.service");
expect(env.OPENCLAW_WINDOWS_TASK_NAME).toBe("OpenClaw Gateway (work)");
if (process.platform === "darwin") {
expect(env.OPENCLAW_LAUNCHD_LABEL).toBe("ai.openclaw.work");
}