From 65eb37f8fcf0c82db0d9b600bb804adf7ead0327 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 9 Apr 2016 16:22:08 -0400 Subject: man: expand description of lingering and KillUserProcesses setting The description in the man page was wrong, KillUserProcesses does not kill all processes of the user. Describe what the setting does, and also add links between the relavant sections of the manual. Also, add an extensive example which shows how to launch screen in the background. --- man/logind.conf.xml | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) (limited to 'man/logind.conf.xml') diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 597759e33a..10a23955a4 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -119,30 +119,45 @@ KillUserProcesses= - Takes a boolean argument. Configures whether - the processes of a user should be killed when the user - completely logs out (i.e. after the user's last session - ended). Defaults to no. - - Note that setting KillUserProcesses=1 + Takes a boolean argument. Configures whether the processes of a + user should be killed when the user logs out. If true, the scope unit + corresponding to the session and all processes inside that scope will be + terminated. If false, the scope is "abandonded", see + systemd.scope5, + and processes are not killed. Defaults to no. + + In addition to session processes, user process may run under the user + manager unit user@.service. Depending on the linger + settings, this may allow users to run processes independent of their login + sessions. See the description of enable-linger in + loginctl1. + + + Note that setting KillUserProcesses=yes will break tools like - screen1. + screen1 + and + tmux1, + unless they are moved out of the session scope. See example in + systemd-run1. + KillOnlyUsers= KillExcludeUsers= - These settings take space-separated lists of - usernames that influence the effect of - KillUserProcesses=. If not empty, only - processes of users listed in KillOnlyUsers= - will be killed when they log out entirely. Processes of users - listed in KillExcludeUsers= are excluded - from being killed. KillExcludeUsers= - defaults to root and takes precedence over - KillOnlyUsers=, which defaults to the empty - list. + These settings take space-separated lists of usernames that + determine to which users the KillUserProcesses= setting + applies. A user name may be added to KillExcludeUsers= to + exclude the processes in the session scopes of that user from being killed even if + KillUserProcesses=yes is set. If + KillExcludeUsers= is not set, the root user + is excluded by default. KillExcludeUsers= may be set to an + empty value to override this default. If a user is not excluded, + KillOnlyUsers= is checked next. A list of user names may be + specified in KillOnlyUsers=, to only include those + users. Otherwise, all users are included. -- cgit v1.2.3-54-g00ecf