core: transition to FINAL_SIGTERM state after ExecStopPost=
Fixes #14566
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b6849042d6
commit
c1566ef0d2
@@ -3501,6 +3501,12 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
|
||||
break;
|
||||
|
||||
case SERVICE_STOP_POST:
|
||||
|
||||
if (control_pid_good(s) <= 0)
|
||||
service_enter_signal(s, SERVICE_FINAL_SIGTERM, f);
|
||||
|
||||
break;
|
||||
|
||||
case SERVICE_FINAL_SIGTERM:
|
||||
case SERVICE_FINAL_SIGKILL:
|
||||
|
||||
@@ -3650,6 +3656,10 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
|
||||
break;
|
||||
|
||||
case SERVICE_STOP_POST:
|
||||
if (main_pid_good(s) <= 0)
|
||||
service_enter_signal(s, SERVICE_FINAL_SIGTERM, f);
|
||||
break;
|
||||
|
||||
case SERVICE_FINAL_SIGTERM:
|
||||
case SERVICE_FINAL_SIGKILL:
|
||||
if (main_pid_good(s) <= 0)
|
||||
|
||||
Reference in New Issue
Block a user