Log a message when stopping a service waiting to restart

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.
This commit is contained in:
C. McEnroe 2020-12-15 16:47:12 -05:00
parent b7ebd38698
commit 7769a4f6e9

View File

@ -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);
}