Description of problem: KillUserProcesses=yes not killing all processes upon log out $ cat /etc/sysconfig/desktop DISPLAYMANAGER=kdm DESKTOP=KDE4 $ grep KillUserProcesses /etc/systemd/logind.conf KillUserProcesses=yes $ grep START_GPGAGENT /etc/sysconfig/gnupg2 START_GPGAGENT="no" START_GPGAGENT_SH="no" Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. change KillUserProcesses=yes in /etc/systemd/logind.conf 2. set run level 3 3. create a test account, say, junk 4. reboot 5. log into your account 6. startx 7. click up a terminal 8. su - junk 9. firefox 10. close firefox 11. exit 12. ps aux | grep junk Reproducible: Steps to Reproduce:
Keywords: (none) => TriagedAssignee: bugsquad => mageia
Whiteboard: (none) => MGA5TOO
"su -" does not create a user session so the logind option KillUserProcesses (or any other option) has no effect here. You cannot create a user session within an exisitng user session (not without complications - this is why startx itself has to inherit the existing user session and thus the type is listed as text rather than graphical and we cannot switch tty or we will lose all ACL permissions etc). Anyway, what you are doing here is totally expected within the context of logind (i.e. logind is not used at all here).
Status: NEW => RESOLVEDResolution: (none) => INVALID