From: Lennart Poettering Date: Thu, 12 Dec 2013 02:03:03 +0000 (+0100) Subject: service: actually leave watchdog enabled in the states where it matters X-Git-Tag: submit/kdbus-integration/20140207.094352~670 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7596e9e10a433c2104a2616dd8dd429a4243e38a;p=platform%2Fupstream%2Fsystemd.git service: actually leave watchdog enabled in the states where it matters --- diff --git a/src/core/service.c b/src/core/service.c index 4c7603c..67d2008 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -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,