From 929fc1137e3a5508610956988cdab5310caef12b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 Jan 2023 12:30:51 +0100 Subject: [system-tweaks] Add timeouts to shutdown/reboot --- .../data/etc/systemd/system.conf.d/10-enable-watchdog.conf | 3 +++ .../data/etc/systemd/system/kexec.target.d/00-force-reboot.conf | 3 +++ .../data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf | 3 +++ .../data/etc/systemd/system/reboot.target.d/00-force-reboot.conf | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 core/modules/system-tweaks/data/etc/systemd/system.conf.d/10-enable-watchdog.conf create mode 100644 core/modules/system-tweaks/data/etc/systemd/system/kexec.target.d/00-force-reboot.conf create mode 100644 core/modules/system-tweaks/data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf create mode 100644 core/modules/system-tweaks/data/etc/systemd/system/reboot.target.d/00-force-reboot.conf (limited to 'core/modules/system-tweaks') diff --git a/core/modules/system-tweaks/data/etc/systemd/system.conf.d/10-enable-watchdog.conf b/core/modules/system-tweaks/data/etc/systemd/system.conf.d/10-enable-watchdog.conf new file mode 100644 index 00000000..34dd37dd --- /dev/null +++ b/core/modules/system-tweaks/data/etc/systemd/system.conf.d/10-enable-watchdog.conf @@ -0,0 +1,3 @@ +[Manager] +RuntimeWatchdogSec=180 +RebootWatchdogSec=30 diff --git a/core/modules/system-tweaks/data/etc/systemd/system/kexec.target.d/00-force-reboot.conf b/core/modules/system-tweaks/data/etc/systemd/system/kexec.target.d/00-force-reboot.conf new file mode 100644 index 00000000..3c2f6749 --- /dev/null +++ b/core/modules/system-tweaks/data/etc/systemd/system/kexec.target.d/00-force-reboot.conf @@ -0,0 +1,3 @@ +[Unit] +JobTimeoutSec=30 +JobTimeoutAction=reboot-immediate diff --git a/core/modules/system-tweaks/data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf b/core/modules/system-tweaks/data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf new file mode 100644 index 00000000..ab9fb6e3 --- /dev/null +++ b/core/modules/system-tweaks/data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf @@ -0,0 +1,3 @@ +[Unit] +JobTimeoutSec=30 +JobTimeoutAction=poweroff-immediate diff --git a/core/modules/system-tweaks/data/etc/systemd/system/reboot.target.d/00-force-reboot.conf b/core/modules/system-tweaks/data/etc/systemd/system/reboot.target.d/00-force-reboot.conf new file mode 100644 index 00000000..3c2f6749 --- /dev/null +++ b/core/modules/system-tweaks/data/etc/systemd/system/reboot.target.d/00-force-reboot.conf @@ -0,0 +1,3 @@ +[Unit] +JobTimeoutSec=30 +JobTimeoutAction=reboot-immediate -- cgit v1.2.3-55-g7522