summaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-02-09 13:05:23 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-09 21:01:29 +0100
commit4b9397474f2c80957fd1cedf885061052333fb25 (patch)
tree349441eb71a9d00e4abd4ecccd19fd17db850eb3 /src/service.h
parent54f5e17193a6837c1b2d59abcd4f84ec61069f33 (diff)
service: add StartLimitInterval/StartLimitBurst/StartLimitAction
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/service.h b/src/service.h
index 02726efe25..60b10516eb 100644
--- a/src/service.h
+++ b/src/service.h
@@ -100,6 +100,15 @@ typedef enum ServiceResult {
_SERVICE_RESULT_INVALID = -1
} ServiceResult;
+typedef enum StartLimitAction {
+ SERVICE_START_LIMIT_NONE,
+ SERVICE_START_LIMIT_REBOOT,
+ SERVICE_START_LIMIT_REBOOT_FORCE,
+ SERVICE_START_LIMIT_REBOOT_IMMEDIATE,
+ _SERVICE_START_LIMIT_MAX,
+ _SERVICE_START_LIMIT_INVALID = -1
+} StartLimitAction;
+
struct Service {
Unit meta;
@@ -169,7 +178,9 @@ struct Service {
char *status_text;
- RateLimit ratelimit;
+ RateLimit start_limit;
+ StartLimitAction start_limit_action;
+
UnitRef accept_socket;
@@ -203,4 +214,7 @@ NotifyAccess notify_access_from_string(const char *s);
const char* service_result_to_string(ServiceResult i);
ServiceResult service_result_from_string(const char *s);
+const char* start_limit_action_to_string(StartLimitAction i);
+StartLimitAction start_limit_action_from_string(const char *s);
+
#endif