mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:44:57 +00:00
doctor: clean up legacy Linux gateway services (#21188)
* Doctor: clean up legacy Linux gateway services * doctor: refactor legacy service cleanup flow * doctor: fix legacy systemd cleanup map key typing * doctor: add changelog entry for legacy Linux service cleanup --------- Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
GATEWAY_LAUNCH_AGENT_LABEL,
|
||||
GATEWAY_SYSTEMD_SERVICE_NAME,
|
||||
GATEWAY_WINDOWS_TASK_NAME,
|
||||
LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES,
|
||||
normalizeGatewayProfile,
|
||||
resolveGatewayLaunchAgentLabel,
|
||||
resolveGatewayProfileSuffix,
|
||||
@@ -128,3 +129,10 @@ describe("resolveGatewayServiceDescription", () => {
|
||||
).toBe("OpenClaw Gateway (profile: work, vremote)");
|
||||
});
|
||||
});
|
||||
|
||||
describe("LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES", () => {
|
||||
it("includes known pre-rebrand gateway unit names", () => {
|
||||
expect(LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES).toContain("clawdbot-gateway");
|
||||
expect(LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES).toContain("moltbot-gateway");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user