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:
parent
b7ebd38698
commit
7769a4f6e9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user