From 5f47019106f516955e702ee44f3c780b2ced0b1e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 14 Aug 2020 17:36:31 -0400 Subject: Implement serviceStart --- daemon.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'daemon.h') diff --git a/daemon.h b/daemon.h index a62f78f..09cda47 100644 --- a/daemon.h +++ b/daemon.h @@ -95,10 +95,13 @@ extern struct Services { } services; int serviceAdd(const char *name, const char *command); +void serviceStart(struct Service *service); extern char configError[]; int configParse(const char *path); +extern int restartInterval; + struct Set256 { uint32_t bits[8]; }; @@ -112,5 +115,5 @@ static inline uint32_t setTest(const struct Set256 *set, byte x) { return set->bits[x / 32] & (1 << (uint32_t)(x & 31)); } -extern int restartInterval; +enum { StopExit = 127 }; extern struct Set256 stopExits; -- cgit 1.4.1