https://bugzilla.novell.com/show_bug.cgi?id=852132 https://bugzilla.novell.com/show_bug.cgi?id=852132#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2013-12-20 13:53:53 UTC --- .. further debugging ... linux:~ # loginctl show-user linux -a | grep Session Sessions=13 linux:~ # systemctl show user@32003.service | grep Kill KillMode=control-group KillSignal=15 indeed the code works, nevertheless the user has logged off and the started sleep is remaining in the session 13
From manual page systemd.kill(5) I can read
KillMode= Specifies how processes of this service shall be killed. One of control-group, process, none. If set to control-group, all remaining processes in the control group of this unit will be terminated on unit stop (for services: after the stop command is executed, as configured with ExecStop=). If set to process, only the main process itself is killed. If set to none, no process is killed. In this case only the stop command will be executed on unit stop, but no process be killed otherwise. Processes remaining alive after stop are left in their control group and the control group continues to exist after stop unless it is empty. Defaults to control-group. it seems that the unit isn't stopped: linux:~ # systemctl list-units | grep 32003 user@32003.service loaded active running User Manager for 32003 user-32003.slice loaded active active user-32003.slice -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.