about summary refs log tree commit diff
path: root/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'service.c')
-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);