diff --git a/src/daemon/systemd.ts b/src/daemon/systemd.ts index 7a28304f3..e92295be2 100644 --- a/src/daemon/systemd.ts +++ b/src/daemon/systemd.ts @@ -213,7 +213,7 @@ export async function installSystemdService({ }); await fs.writeFile(unitPath, unit, "utf8"); - const serviceName = resolveGatewaySystemdServiceName(env.CLAWDBOT_PROFILE); + const serviceName = resolveSystemdServiceName(env); const unitName = `${serviceName}.service`; const reload = await execSystemctl(["--user", "daemon-reload"]); if (reload.code !== 0) { @@ -244,7 +244,7 @@ export async function uninstallSystemdService({ stdout: NodeJS.WritableStream; }): Promise { await assertSystemdAvailable(); - const serviceName = resolveGatewaySystemdServiceName(env.CLAWDBOT_PROFILE); + const serviceName = resolveSystemdServiceName(env); const unitName = `${serviceName}.service`; await execSystemctl(["--user", "disable", "--now", unitName]);