← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Systemd Linger Feature Clarified for Debian Users

🔄 Updated 85d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Systemd's KillUserProcesses option can terminate user processes on logout.
  • The "linger" feature is not required for screen/tmux/nohup persistence in Debian.
  • Users can enable/disable linger for their accounts using `loginctl` commands.
  • Checking linger status requires inspecting `/var/lib/systemd/linger`.

Systemd Process Termination on Logout

Systemd includes a feature that can terminate user processes when a user logs out. This functionality is controlled by the `KillUserProcesses` option within the `/etc/systemd/logind.conf` configuration file for `systemd-logind`. In recent Debian releases, this option is disabled by default, allowing user processes to continue running after logout.

The Role of the Linger Feature

Contrary to a common belief, the "linger" feature is not necessary for applications like screen, tmux, or nohup to persist after a user logs out in Debian's default setup. While some specific configurations might require it, the primary effect of "linger" on a default Debian system is to allow programs to start in the user's session even when the user is not logged in.

Managing User Process Killing

If `KillUserProcesses` is enabled, systemd can be configured to kill processes for specific users or exclude others, such as the root user. A systemd unit can also be used to start applications like screen, preventing them from being terminated upon logout even when `KillUserProcesses` is active. This feature can be useful for managing misbehaving desktop environments by ensuring all user processes are cleared on logout.

Controlling Linger for User Accounts

Users can enable or disable the "linger" feature for their own accounts using the commands `loginctl enable-linger` and `loginctl disable-linger`, provided `polkit` is installed and configured typically. Root users can manage linger for other accounts with `loginctl enable-linger $ACCOUNT` and `loginctl disable-linger $ACCOUNT`. There is no documented command to list accounts with linger enabled; checking `ls /var/lib/systemd/linger` is the current method.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

The systemd "linger" feature, often misunderstood as necessary for screen/tmux/nohup to persist after logout, is not required for this functionality in Debian's default configuration. The article clarifies how systemd-logind's KillUserProcesses option and the linger feature interact, and how to manage linger for user accounts. This information helps users understand systemd behavior regarding process persistence and manage it effectively.