summary refs log tree commit diff
path: root/daemon.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 15:29:58 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 15:29:58 -0400
commit92d27e09c3a6c66e6a14b35a3666a04eaa54813a (patch)
tree046ee579b3a5a189ce7d9d3c6cde6757537439e3 /daemon.c
parentParse control commands (diff)
downloadcatsit-92d27e09c3a6c66e6a14b35a3666a04eaa54813a.tar.gz
catsit-92d27e09c3a6c66e6a14b35a3666a04eaa54813a.zip
Implement service status
Diffstat (limited to '')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 13098af..faf9150 100644
--- a/daemon.c
+++ b/daemon.c
@@ -134,7 +134,7 @@ static void parseControl(char *command) {
 	} else if (!strcmp(action, "restart")) {
 		fn = serviceRestart;
 	} else if (!strcmp(action, "status")) {
-		// TODO
+		fn = serviceStatus;
 	} else {
 		for (int i = 1; i < NSIG; ++i) {
 			if (strcasecmp(action, sys_signame[i])) continue;