diff --git a/man/logind.conf.xml b/man/logind.conf.xml index abd37d0db1893..96c1aeae708df 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -124,7 +124,7 @@ 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. + and processes are not killed. Defaults to yes. In addition to session processes, user process may run under the user manager unit user@.service. Depending on the linger diff --git a/src/login/logind.c b/src/login/logind.c index 26e358d78a7bc..cb2c30deb5786 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -88,6 +88,8 @@ static Manager *manager_new(void) { if (!m->kill_exclude_users) goto fail; + m->kill_user_processes = true; + m->udev = udev_new(); if (!m->udev) goto fail; diff --git a/src/login/logind.conf b/src/login/logind.conf index 6095e482ace39..8316bb4d74db0 100644 --- a/src/login/logind.conf +++ b/src/login/logind.conf @@ -14,7 +14,7 @@ [Login] #NAutoVTs=6 #ReserveVT=6 -#KillUserProcesses=no +#KillUserProcesses=yes #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5