diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-05 18:42:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-05 18:42:52 +0200 |
commit | 6cfe2fde1cc919c2333a5749ea1cbc31fa757077 (patch) | |
tree | 550139112b88670c268706404020482a8897ca71 /src/core/service.h | |
parent | 2d2ebaf5152cfc232aec61aad5138adc950f4b5c (diff) |
core: introduce new Restart=on-abnormal setting
Restart=on-abnormal is similar to Restart=on-failure, but avoids
restarts on unclean exit codes (but still doing restarts on all
obviously unclean exits, such as timeouts, signals, coredumps, watchdog
timeouts).
Also see:
https://fedorahosted.org/fpc/ticket/191
Diffstat (limited to 'src/core/service.h')
-rw-r--r-- | src/core/service.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/service.h b/src/core/service.h index 2254c3e0bf..8c2c819256 100644 --- a/src/core/service.h +++ b/src/core/service.h @@ -53,6 +53,7 @@ typedef enum ServiceRestart { SERVICE_RESTART_NO, SERVICE_RESTART_ON_SUCCESS, SERVICE_RESTART_ON_FAILURE, + SERVICE_RESTART_ON_ABNORMAL, SERVICE_RESTART_ON_WATCHDOG, SERVICE_RESTART_ON_ABORT, SERVICE_RESTART_ALWAYS, |