mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
service: don't enter a second SIGTERM/SIGKILL cycle if no ExecStopPost= process is defined
It won't help if the main process is still there and there is no new process to kill.
This commit is contained in:
parent
c72aadd185
commit
c961869ac5
@ -1987,7 +1987,7 @@ static void service_enter_stop_post(Service *s, ServiceResult f) {
|
||||
|
||||
service_set_state(s, SERVICE_STOP_POST);
|
||||
} else
|
||||
service_enter_signal(s, SERVICE_FINAL_SIGTERM, SERVICE_SUCCESS);
|
||||
service_enter_dead(s, SERVICE_SUCCESS, true);
|
||||
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user