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

Lennart Poettering lennart at poettering.net
Tue Feb 7 06:33:37 PST 2012


On Fri, 03.02.12 21:14, Michael Olbrich (m.olbrich at pengutronix.de) wrote:

>          switch (s->state) {
> diff --git a/src/service.h b/src/service.h
> index b1e8b90..32341f0 100644
> --- a/src/service.h
> +++ b/src/service.h
> @@ -95,6 +95,7 @@ typedef enum ServiceResult {
>          SERVICE_FAILURE_EXIT_CODE,
>          SERVICE_FAILURE_SIGNAL,
>          SERVICE_FAILURE_CORE_DUMP,
> +        SERVICE_FAILURE_WATCHDOG_TIMEOUT,

I'd just shorten this to "watchdog" instead of "watchdog-timeout".

You also need to add this new enum entry to the string array for it down
in service.c.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list