diff options
author | June McEnroe <june@causal.agency> | 2020-12-15 16:47:12 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-15 16:47:12 -0500 |
commit | 7769a4f6e94452719e09b8f0c3a1ecca09b55355 (patch) | |
tree | 0ea9020992d1a3dcd80cf530a493c6689a9285ce | |
parent | Refactor unveil calls so errors can be reported properly (diff) | |
download | catsit-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.
Diffstat (limited to '')
-rw-r--r-- | service.c | 3 |
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); } |