aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/include/service.h6
-rw-r--r--lib/init/rdsvc.c1
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/include/service.h b/lib/include/service.h
index a01c6bb..0fbf018 100644
--- a/lib/include/service.h
+++ b/lib/include/service.h
@@ -40,7 +40,6 @@ enum {
SVC_FLAG_TRUNCATE_OUT = 0x01,
SVC_FLAG_HAS_EXEC = 0x10,
- SVC_FLAG_ADMIN_STOPPED = 0x20,
};
typedef struct service_t {
@@ -53,7 +52,6 @@ typedef struct service_t {
char *desc; /* description string */
char *ctty; /* controlling tty or log file */
int rspwn_limit; /* maximum respawn count */
- int rspwn_count; /* services respawn counter */
unsigned int flags; /* SVC_FLAG_* bit field */
/* linked list of command lines to execute */
@@ -65,10 +63,6 @@ typedef struct service_t {
int num_before;
int num_after;
- pid_t pid;
- int status; /* process exit status */
- int id; /* service ID used by initd */
-
char name[]; /* canonical service name */
} service_t;
diff --git a/lib/init/rdsvc.c b/lib/init/rdsvc.c
index 7f7bc29..09ed156 100644
--- a/lib/init/rdsvc.c
+++ b/lib/init/rdsvc.c
@@ -243,7 +243,6 @@ service_t *rdsvc(int dirfd, const char *filename)
goto fail_oom;
memcpy(svc->name, filename, nlen);
- svc->id = -1;
if (rdcfg(svc, &rd, svc_params,
sizeof(svc_params) / sizeof(svc_params[0]))) {