[systemd-devel] [PATCH v2 1/3] introduce WatchdogSec and hook up the watchdog with the existing failure logic

Lennart Poettering lennart at poettering.net
Wed Feb 8 12:27:04 PST 2012


On Wed, 08.02.12 10:10, Michael Olbrich (m.olbrich at pengutronix.de) wrote:

Thanks,

applied.

> +                                <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>
> +                                regularly with "WATCHDOG=1". If the time
> +                                between two such calls is larger than
> +                                the configured time then the service
> +                                enters a failure state. By setting
> +                                <term><varname>Restart=</varname></term>
> +                                to <option>on-failure</option> or
> +                                <option>always</option> the service can
> +                                be restarted. Defaults to 0s, which
> +                                disables this feature.</para></listitem>

This makes me think that it might be a good idea to add a new restart
setting for this: Restart=on-watchdog, for people who only want to
restart on watchdog failures, but not otherwise? Do you think this could
be useful to you? If so, happy to merge a patch for that.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list