[opensuse-factory] systemd not being stopped when you log out

Hi In "Systems Activity" I've systemd (plus (sd-pam), dbus_daemon, gvfsd, gvfsd-fuse, dconf-service) still running from a different user. If I end the systemd process in "System Activity", it closes systemd and all the related processes down successfully. I did have these processes running from 2 other users too so i rebooted and logged into one account and then back into this one to see if it still happened, unfortunately it does. I don't know when this started to occur. I can't find any bug logged apart from one from "NEW" one in 2016 about Leap 42.1 not killing all user processes on logout. regards Ian -- opensuse:tumbleweed:20180318 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wed, Mar 21, 2018 at 1:19 AM, Ianseeks <bingmybong@btinternet.com> wrote:
For as long as I remember. GNOME session launches some long-living processes that are not terminated on logout; so for logind session is still running and it does not stop user systemd instance.
I can't find any bug logged apart from one from "NEW" one in 2016 about Leap 42.1 not killing all user processes on logout.
"Bug" in this case would be process that should have been stopped but was not. Unless you can demonstrate it, I'd say it works as intended (even if we do not like it :) ) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday, 21 March 2018 12:14:57 GMT Andrei Borzenkov wrote:
Thats the problem, i don't know if its intended. I would have thought that all user processes should get shut down at logoff. Thanks for responding. -- opensuse:tumbleweed:20180318 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mar 21, 2018, at 10:28 PM, Ianseeks <bingmybong@btinternet.com> wrote:
Thats the problem, i don't know if its intended. I would have thought that all user processes should get shut down at logoff.
That depends on whether you have KillUserProcesses=yes in /etc/systemd/logind.conf. Note: This also kills things like screen snd tmux, if you want them to survive, you need to use something like „systemd-run —user screen“ with lingering enabled (see manpage). Adrian-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday, 21 March 2018 18:29:26 GMT John Paul Adrian Glaubitz wrote:
I've never touched that file and this "systemd" not closing situation is fairly new. Did something change in a download? According to the logind.conf comments, the file contents are generated by kcmsystemd control module v1.2.1, can you mod it without it being overwritten again or is there a configurator program?
Thanks -- opensuse:tumbleweed:20180318 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

This is something that GNOME does, not systemd. GNOME is generally notorious for keeping user processes running after logout since they still assume Linux desktops to be single user. I remember talking to a GNOME upstream developer at LinuxTag 2005(!), asking them why there are still gconfd processes running after logout as this poses a serious problem in a multiuser environment like our university back then where that resulted in hundreds of gconfd processes after just a few days. The GNOME guy was very surprised to hear that such environments exist and didn’t really have an answer to my original question. It goes along with the crippling of GDM and removing the language setting feature or being able to store session preferences per user independent of the login machine used (looking at you accountsservicesd). Antway, your best bet is to use the systemd feature above. However, keep in mind that GNOME might also start systemd-user services which can be kept alive with the lingering option. PS: I can highly recommend KDE these days ;). Adrian-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday, 21 March 2018 19:35:53 GMT John Paul Adrian Glaubitz wrote:
Thanks. I am using KDE :)
Adrian
-- opensuse:tumbleweed:20180318 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday, 21 March 2018 18:29:26 GMT John Paul Adrian Glaubitz wrote:
I've checked "logind.conf" (dated January 2017) and none of the keywords have values after the "=". Because there is no value with the KillUserProcesses keyword, it should default to "yes" and then it inspects KillOnlyUsers=, KillExcludeUsers=. KillExcludeUsers should default to "root". But there is a "logind.conf.rpmnew" (January 2018) with some new keywords and many of the keywords have values e.g. KillUserProcesses=no and KillExcludeUsers=root I guess the question is, did i miss some instructions that said i should have replaced the existing logind.conf with the logind.conf.rpmnew one as a newer version of systemd was installed and then updated KillUserProcesses= to "yes". I'll give it a try and see what happens once i've backed up -- opensuse:tumbleweed:20180318 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Tuesday, 20 March 2018 22:19:35 GMT Ianseeks wrote:
After making a few changes and testing, nothing has changed so not sure if this is a bug or the way things are now but i've logged in case someone knows. Bug 1086459 -- opensuse:tumbleweed:20180319 Qt: 5.10.0 KDE Frameworks: 5.43.0 - KDE Plasma: 5.12.3 - kwin 5.12.3 kmail2 5.7.2 - akonadiserver 5.7.2 - Kernel: 4.15.10-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Ianseeks
-
John Paul Adrian Glaubitz