X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fservice.h;h=521baaa1fb903df9e892558a63941e25db402062;hp=5242de58fa854b07a7cd3125bfdc7f61070f07ef;hb=8745297f9853c4a17bac69e1b7e652fe81bc1940;hpb=1f48cf56cb2693b84fdc76dc8df0b048ed50ef43 diff --git a/src/service.h b/src/service.h index 5242de58f..521baaa1f 100644 --- a/src/service.h +++ b/src/service.h @@ -41,7 +41,7 @@ typedef enum ServiceState { SERVICE_STOP_POST, SERVICE_FINAL_SIGTERM, /* In case the STOP_POST executable hangs, we shoot that down, too */ SERVICE_FINAL_SIGKILL, - SERVICE_MAINTAINANCE, + SERVICE_MAINTENANCE, SERVICE_AUTO_RESTART, _SERVICE_STATE_MAX, _SERVICE_STATE_INVALID = -1 @@ -60,6 +60,7 @@ typedef enum ServiceType { SERVICE_FORKING, /* forks by itself (i.e. traditional daemons) */ SERVICE_FINISH, /* we fork and wait until the program finishes (i.e. programs like fsck which run and need to finish before we continue) */ SERVICE_DBUS, /* we fork and wait until a specific D-Bus name appears on the bus */ + SERVICE_NOTIFY, /* we fork and wait until a daemon sends us a ready message with sd_notify() */ _SERVICE_TYPE_MAX, _SERVICE_TYPE_INVALID = -1 } ServiceType; @@ -121,6 +122,8 @@ struct Service { char *bus_name; + char *status_text; + RateLimit ratelimit; int socket_fd;