From f3ea14f19ed4c80f5ee0686843ca5938d5466f91 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 12 Mar 2018 13:06:25 +0100 Subject: [PATCH] systemd: Do not kill user sessions by default From the manual page logind.conf(5): > KillUserProcesses= > 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 "abandoned", see > systemd.scope(5), and processes are not killed. Defaults to "yes", > but see the options KillOnlyUsers= and KillExcludeUsers= below. > > 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 loginctl(1). > > Note that setting KillUserProcesses=yes will break tools like > screen(1) and tmux(1), unless they are moved out of the session > scope. See example in systemd-run(1). --- systemd.be0 | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd.be0 b/systemd.be0 index 36a05c23d..d98ba2b79 100755 --- a/systemd.be0 +++ b/systemd.be0 @@ -67,6 +67,7 @@ mee_configure() { -Drootlibdir=/lib \ -Dsplit-usr=true \ -Dsysusers=false \ + -Ddefault-kill-user-processes=false \ -Db_lto=false }