service: fix incorrect argument
The last argument to service_enter_dead() is bool allow_restart, not a service result.
This commit is contained in:
+1
-1
@@ -3227,7 +3227,7 @@ static void service_cgroup_notify_event(Unit *u) {
|
||||
case SERVICE_FINAL_SIGTERM:
|
||||
case SERVICE_FINAL_SIGKILL:
|
||||
if (main_pid_good(s) <= 0 && !control_pid_good(s))
|
||||
service_enter_dead(s, SERVICE_SUCCESS, SERVICE_SUCCESS);
|
||||
service_enter_dead(s, SERVICE_SUCCESS, true);
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user