Commit 6d594baa authored by Michael Olbrich's avatar Michael Olbrich Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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.
parent c8503a3e
......@@ -1550,7 +1550,7 @@ static void service_set_state(Service *s, ServiceState state) {
if (state == SERVICE_STOP)
if (state == SERVICE_STOP || state == SERVICE_STOP_SIGTERM)
/* For the inactive states unit_notify() will trim the cgroup,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment