From c961869ac580f5a3aea3737f9e45af71b0983662 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 12 Jun 2013 08:41:16 +0200 Subject: [PATCH] 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. --- src/core/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/service.c b/src/core/service.c index 2bc0dc587..b98f11aed 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -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; -- 2.30.2