Onboard: auto-enable systemd lingering on Linux

This commit is contained in:
Tobias Bischoff authored and Peter Steinberger committed 2026-01-05 21:20:05 +00:00
1 parent 949ea38ef5
commit de153a40d0
4 files changed
+42 -12

No files matched your search

+11 -10
View File
@@ -489,6 +489,17 @@ export async function runOnboardingWizard(
nextConfig = applyWizardMetadata(nextConfig, { command: "onboard", mode });
await writeConfigFile(nextConfig);
await ensureSystemdUserLingerInteractive({
runtime,
prompter: {
confirm: prompter.confirm,
note: prompter.note,
},
reason:
"Linux installs use a systemd user service by default. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.",
requireConfirm: false,
});
const installDaemon = await prompter.confirm({
message: "Install Gateway daemon (recommended)",
initialValue: true,
@@ -539,16 +550,6 @@ export async function runOnboardingWizard(
});
}
await ensureSystemdUserLingerInteractive({
runtime,
prompter: {
confirm: prompter.confirm,
note: prompter.note,
},
reason:
"Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.",
requireConfirm: true,
});
}
await sleep(1500);