summaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-02-08 10:10:34 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-08 17:10:38 +0100
commitbb242b7b5277f5db4a01be905f26eccd382ff1e0 (patch)
tree99cb256985193d596061bd585cc71e7155b43499 /src/service.h
parentaa704ba8c2a1adce92ba8a154f70f1bdc950be1e (diff)
service: introduce WatchdogSec and hook up the watchdog with the existing failure logic
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.h b/src/service.h
index b1e8b90470..02726efe25 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,
_SERVICE_RESULT_MAX,
_SERVICE_RESULT_INVALID = -1
} ServiceResult;
@@ -112,6 +113,8 @@ struct Service {
usec_t timeout_usec;
dual_timestamp watchdog_timestamp;
+ usec_t watchdog_usec;
+ Watch watchdog_watch;
ExecCommand* exec_command[_SERVICE_EXEC_COMMAND_MAX];
ExecContext exec_context;