chiark / gitweb /
service: really stop watchdog timer when stopping
[elogind.git] / src / core / service.c
index ee5a1a41e574b58b51f6894b9bd968a1127bceee..593946e5172e61517a8d7870fb7763857ae816d3 100644 (file)
@@ -1550,7 +1550,7 @@ static void service_set_state(Service *s, ServiceState state) {
                 service_connection_unref(s);
         }
 
-        if (state == SERVICE_STOP)
+        if (state == SERVICE_STOP || state == SERVICE_STOP_SIGTERM)
                 service_stop_watchdog(s);
 
         /* For the inactive states unit_notify() will trim the cgroup,