summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-15 16:47:12 -0500
committerJune McEnroe <june@causal.agency>2020-12-15 16:47:12 -0500
commit7769a4f6e94452719e09b8f0c3a1ecca09b55355 (patch)
tree0ea9020992d1a3dcd80cf530a493c6689a9285ce
parentRefactor unveil calls so errors can be reported properly (diff)
downloadcatsit-1.1.tar.gz
catsit-1.1.zip
Log a message when stopping a service waiting to restart 1.1
It's a little annoying to have to special-case this, but otherwise there
is no confirmation in the log that the restart won't still happen.
-rw-r--r--service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/service.c b/service.c
index 4aaad54..6718b06 100644
--- a/service.c
+++ b/service.c
@@ -270,6 +270,9 @@ void serviceSignal(struct Service *service, int signal) {
 }
 
 void serviceStop(struct Service *service) {
+	if (service->intent != Stop && service->state != Start) {
+		syslog(LOG_NOTICE, "%s[] stopped", service->name);
+	}
 	service->intent = Stop;
 	serviceSignal(service, SIGTERM);
 }