Fix resetting restart interval with explicit restart

This commit is contained in:
C. McEnroe 2020-08-15 18:28:20 -04:00
parent 497cafbf0f
commit 8b9daf7d5d
1 changed files with 1 additions and 1 deletions

View File

@ -217,8 +217,8 @@ void serviceStop(struct Service *service) {
}
void serviceRestart(struct Service *service) {
service->intent = Restart;
if (service->state == Start) {
service->intent = Restart;
serviceSignal(service, SIGTERM);
} else {
serviceStart(service);