mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:00:44 +00:00
fix(gateway): clarify systemd service scope
This commit is contained in:
@@ -41,7 +41,7 @@ function createService(overrides: Partial<GatewayService> = {}): GatewayService
|
||||
describe("resolveGatewayService", () => {
|
||||
it.each([
|
||||
{ platform: "darwin" as const, label: "LaunchAgent", loadedText: "loaded" },
|
||||
{ platform: "linux" as const, label: "systemd", loadedText: "enabled" },
|
||||
{ platform: "linux" as const, label: "systemd user", loadedText: "enabled" },
|
||||
{ platform: "win32" as const, label: "Scheduled Task", loadedText: "registered" },
|
||||
])("returns the registered adapter for $platform", ({ platform, label, loadedText }) => {
|
||||
setPlatform(platform);
|
||||
|
||||
@@ -262,7 +262,7 @@ const GATEWAY_SERVICE_REGISTRY: Record<SupportedGatewayServicePlatform, GatewayS
|
||||
readRuntime: readLaunchAgentRuntime,
|
||||
},
|
||||
linux: {
|
||||
label: "systemd",
|
||||
label: "systemd user",
|
||||
loadedText: "enabled",
|
||||
notLoadedText: "disabled",
|
||||
stage: ignoreServiceWriteResult(stageSystemdService),
|
||||
|
||||
Reference in New Issue
Block a user