summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-14 17:36:31 -0400
committerJune McEnroe <june@causal.agency>2020-08-14 17:36:31 -0400
commit5f47019106f516955e702ee44f3c780b2ced0b1e (patch)
tree06ba0fc0bc6803e71ec4242105c87694be725648 /daemon.h
parentFlesh out Service struct (diff)
downloadcatsit-5f47019106f516955e702ee44f3c780b2ced0b1e.tar.gz
catsit-5f47019106f516955e702ee44f3c780b2ced0b1e.zip
Implement serviceStart
Diffstat (limited to 'daemon.h')
-rw-r--r--daemon.h5
1 files changed, 4 insertions, 1 deletions
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;