[systemd-devel] check to see if service is still alive

Michael Biebl mbiebl at gmail.com
Thu May 26 08:14:10 UTC 2016


2016-05-26 9:55 GMT+02:00 Thomas Güttler <guettliml at thomas-guettler.de>:
> Hi,
>
> I have a service which sends "I am alive" (WATCHDOG=1) via sd_notify.
>
> Sometimes the custom service fails, but still sends the WATCHDOG=1.

Why does your service continue to send WATCHDOG=1 events when it failed?

> Now "systemctl status" says that the service is running, but in reality
> it is failed.

If your service still sends WATCHDOG=1 events when it actually failed,
then your service is doing something wrong and needs to be fixed.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list