[systemd-devel] Problems trying to convert a System-V-Init script to systemd

Andrei Borzenkov arvidjaar at gmail.com
Tue Jul 26 03:38:35 UTC 2016


25.07.2016 20:48, Lennart Poettering пишет:
> "su" opens user sessions, it does substantially more than just change
> UIDs. Consider using "runuser" at least.
> 
> The fact that a user session is created means that systemd will track
> the code invoked like that independently of the service unit, in a new
> session scope unit. This means its lifecycle is detach from the
> service have, and it's on you to ensure everything is stopped again
> when the service is terminated.
> 

The problem is that service is not even given chance to ensure anything,
because service processes are killed before systemd tries to stop service.



More information about the systemd-devel mailing list