PAMName=login, systemctl stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I have a rather simple service file that sets up a user session with "PAMName=login", then starts a script and a few (old X11 related) programs. Starting it is easy, but stopping the service will send SIGTERM only to the main process, because "Any child processes of that process will however be associated with the session scope unit only" - as per man systemd.exec(5).

Is there a way to amend the service file to stop these children?

(I did find "KillUserProcesses=yes" in logind.conf but that's global. I'd like to kill my service file child processes only).

Best regards,

Valentijn



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux