Am 28.10.2016 um 00:50 schrieb Tobias Brink:
> Hello!
> 
> tl;dr: When a daemon exits "normally" (for example due to signal 15)
>        although it should not exit (because I did not call "systemctl
>        stop"), systemd does not consider it a failure.

[..]

> How do I tell systemd that it is a failure if the daemon is not running,
> except if I explicitly killed it via "systemctl stop" or similar? I
> either can't seem to find the right google query or this is not the
> right way to go about this.

There is also Restart=always

See
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=

and
https://www.freedesktop.org/software/systemd/man/systemd.service.html#SuccessExitStatus=
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to