about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index fef9b00..9b156f2 100644
--- a/service.c
+++ b/service.c
@@ -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);