diff options
author | June McEnroe <june@causal.agency> | 2020-08-14 18:11:14 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-14 18:11:14 -0400 |
commit | e68a29c15e5f1050a19b399f86ff5caf5d1d77f0 (patch) | |
tree | dd5b73598f3d4c655e6799980a55a90c5db909d9 /daemon.h | |
parent | Reset restartInterval and restartDeadline on start (diff) | |
download | catsit-e68a29c15e5f1050a19b399f86ff5caf5d1d77f0.tar.gz catsit-e68a29c15e5f1050a19b399f86ff5caf5d1d77f0.zip |
Implement serviceSignal, serviceStop, serviceRestart
Diffstat (limited to '')
-rw-r--r-- | daemon.h | 4 |
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); |