fix(gateway): clarify systemd service scope

This commit is contained in:
Vincent Koc
2026-05-04 03:33:49 -07:00
parent 23eb44b045
commit 97d35f4c57
3 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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),