[systemd-devel] Automatically stop a service when a dependent service exits
jeremy.rosen at smile.fr
Thu Feb 15 11:02:45 UTC 2018
StopWhenUnneeded in man:systemd.unit is probably what you want...
On 15/02/2018 10:06, Jakob Schöttl wrote:
> can I ask a configuration question here?
> I have an upload.service, started by an upload.timer. The upload.service
> has a Require=ssh-tunnel.service (After= is also set). When the
> upload.service is finished how can I make systemd to also stop the
> Currently I use systemctl stop ssh-tunnel.service in the upload script.
> But since the upload.service has User=<non-root>, I also have to
> configure sudo to allow my script to stop the service.
> Is there already a systemd solution for this problem?
> - Jakob
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
20 rue des Jardins
Responsable de l'expertise Smile-ECS
email jeremy.rosen at smile.fr <mailto:jeremy.rosen at smile.fr>
Twitter <https://twitter.com/GroupeSmile> Facebook
Découvrez l’univers Smile, rendez-vous sur smile.eu
eco Pour la planète, n'imprimez ce mail que si c'est nécessaire
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the systemd-devel