service: actually leave watchdog enabled in the states where it matters

This commit is contained in:
Lennart Poettering
2013-12-12 03:06:21 +01:00
parent fe2b58a4ff
commit 7596e9e10a
+1 -1
View 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,