service: actually leave watchdog enabled in the states where it matters
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Dec 2013 02:03:03 +0000 (03:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Dec 2013 02:06:21 +0000 (03:06 +0100)
src/core/service.c

index 4c7603c..67d2008 100644 (file)
@@ -1513,7 +1513,7 @@ static void service_set_state(Service *s, ServiceState state) {
                 service_connection_unref(s);
         }
 
-        if (IN_SET(state, SERVICE_START_POST, SERVICE_RUNNING, SERVICE_RELOAD))
+        if (!IN_SET(state, SERVICE_START_POST, SERVICE_RUNNING, SERVICE_RELOAD))
                 service_stop_watchdog(s);
 
         /* For the inactive states unit_notify() will trim the cgroup,