summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 03:03:03 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 03:06:21 +0100
commit7596e9e10a433c2104a2616dd8dd429a4243e38a (patch)
treea7b22e13c1046543b9da8f5756b0528056659ba6 /src/core
parentfe2b58a4ff8dc1cdf7081bd071bad8450db51423 (diff)
service: actually leave watchdog enabled in the states where it matters
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 4c7603c069..67d20085e9 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,