[systemd-commits] src/service.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue Aug 31 16:33:19 PDT 2010


 src/service.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 28708d8aa0da5ac1c568b08b1e1c951f69cd4e82
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Sep 1 01:33:12 2010 +0200

    service: recheck PID status when a cgroup runs empty

diff --git a/src/service.c b/src/service.c
index 2fec3ea..fabb71c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2572,6 +2572,13 @@ static void service_cgroup_notify_event(Unit *u) {
                 service_enter_running(s, true);
                 break;
 
+        case SERVICE_STOP_SIGTERM:
+        case SERVICE_STOP_SIGKILL:
+                if (main_pid_good(s) <= 0 && !control_pid_good(s))
+                        service_enter_stop_post(s, true);
+
+                break;
+
         default:
                 ;
         }


More information about the systemd-commits mailing list