chiark / gitweb /
service: execute ExecStopPost= commands when the watchdog timeout hits
[elogind.git] / src / core / service.c
index e110a41daebbdcbcd01e8550ec98a4dca750dd3c..20990d2a19bfcd97e0c8dc7f5bfdf612c33f84e7 100644 (file)
@@ -249,7 +249,7 @@ static void service_handle_watchdog(Service *s) {
         offset = now(CLOCK_MONOTONIC) - s->watchdog_timestamp.monotonic;
         if (offset >= s->watchdog_usec) {
                 log_error_unit(UNIT(s)->id, "%s watchdog timeout!", UNIT(s)->id);
-                service_enter_signal(s, SERVICE_FINAL_SIGKILL, SERVICE_FAILURE_WATCHDOG);
+                service_enter_signal(s, SERVICE_STOP_SIGKILL, SERVICE_FAILURE_WATCHDOG);
                 return;
         }