mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
service: really stop watchdog timer when stopping
For services without ExecStop= the state SERVICE_STOP is never entered. as a result the watchdog timer is not stopped and the service is restarted (if it is configuered to restart). Stopping the watchdog timer for SERVICE_STOP_SIGTERM as well fixes this.
This commit is contained in:
parent
c8503a3e16
commit
6d594baa3f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user