1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

shutdown: don't stop the watchdog

This basically reverts #22079.

Stopping the watchdog is wrong. The reboot watchdog is supposed to cover
the whole time from the point when systemd start systemd-reboot until the
hardware resets.
Otherwise the system may hang in the final shutdown phase.

Add a comment, why keeping the watchdog running is correct here.
This commit is contained in:
Michael Olbrich 2022-02-02 15:33:07 +01:00
parent f4b1a6b641
commit 119d5126d1

View File

@ -531,8 +531,9 @@ int main(int argc, char *argv[]) {
need_md_detach ? " MD devices," : "");
}
/* We're done with the watchdog. */
watchdog_close(true);
/* We're done with the watchdog. Note that the watchdog is explicitly not
* stopped here. It remains active to guard against any issues during the
* rest of the shutdown sequence. */
watchdog_free_device();
arguments[0] = NULL;