X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fservice.h;h=d1e53bf727fa0a97ffc1b848659ca085f8be398b;hp=c78de79a09c9615c1aa0f74ff9f191d454b1cd9d;hb=7f602784de4fd378120e8ebfe6d830862b9cae03;hpb=d568a3350ee8a45877eef87cd026a954124e2cf8 diff --git a/src/core/service.h b/src/core/service.h index c78de79a0..d1e53bf72 100644 --- a/src/core/service.h +++ b/src/core/service.h @@ -28,6 +28,7 @@ typedef struct Service Service; #include "ratelimit.h" #include "service.h" #include "kill.h" +#include "exit-status.h" typedef enum ServiceState { SERVICE_DEAD, @@ -97,6 +98,7 @@ typedef enum ServiceResult { SERVICE_FAILURE_SIGNAL, SERVICE_FAILURE_CORE_DUMP, SERVICE_FAILURE_WATCHDOG, + SERVICE_FAILURE_START_LIMIT, _SERVICE_RESULT_MAX, _SERVICE_RESULT_INVALID = -1 } ServiceResult; @@ -115,6 +117,8 @@ struct Service { ServiceType type; ServiceRestart restart; + ExitStatusSet restart_ignore_status; + ExitStatusSet success_status; /* If set we'll read the main daemon PID from this file */ char *pid_file;