summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-14 18:11:14 -0400
committerJune McEnroe <june@causal.agency>2020-08-14 18:11:14 -0400
commite68a29c15e5f1050a19b399f86ff5caf5d1d77f0 (patch)
treedd5b73598f3d4c655e6799980a55a90c5db909d9 /daemon.h
parentReset restartInterval and restartDeadline on start (diff)
downloadcatsit-e68a29c15e5f1050a19b399f86ff5caf5d1d77f0.tar.gz
catsit-e68a29c15e5f1050a19b399f86ff5caf5d1d77f0.zip
Implement serviceSignal, serviceStop, serviceRestart
Diffstat (limited to '')
-rw-r--r--daemon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon.h b/daemon.h
index 32827aa..5975034 100644
--- a/daemon.h
+++ b/daemon.h
@@ -67,6 +67,7 @@ extern char *serviceEnviron[EnvironLen];
 enum State {
 	Stop,
 	Start,
+	Restart,
 };
 
 enum { LineCap = 512 };
@@ -96,6 +97,9 @@ extern struct Services {
 
 int serviceAdd(const char *name, const char *command);
 void serviceStart(struct Service *service);
+void serviceStop(struct Service *service);
+void serviceRestart(struct Service *service);
+void serviceSignal(struct Service *service, int signal);
 
 extern char configError[];
 int configParse(const char *path);