[systemd-devel] PAMName=login, systemctl stop
Valentijn Sessink
valentijn at sessink.nl
Thu Jun 22 14:22:20 UTC 2023
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
More information about the systemd-devel
mailing list