summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-06-12 08:41:16 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-18 02:32:33 +0200
commitc961869ac580f5a3aea3737f9e45af71b0983662 (patch)
tree96e9563876620e34acbca244b8548ba23181137e /src/core
parentc72aadd1851096ea979f68b4e32cca71746ccdc4 (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c
index 2bc0dc5877..b98f11aed8 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;