Systemd Linger
- Infrastructure
- Open Source
- Developer Tools
The post walks through systemd's user-session model and the "linger" feature, which keeps a per-user systemd instance running after logout so user services can stay alive. It frames linger as part of the long-running fight over whether a user logging out should also kill their processes, especially things like screen, tmux, nohup jobs, and small user-owned daemons. The key practical point is that systemd split this behavior across more than one control, so what survives logout depends on both the feature and the distro's defaults.
If you rely on tmux, screen, user daemons, or background jobs surviving logout, check your distro defaults for both linger and KillUserProcesses instead of assuming generic systemd behavior. More broadly, expect Linux operational behavior to vary by distribution policy even when the underlying feature is the same.
-
etbe.coker.com.au
- Discuss on HN