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.

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to