summaryrefslogtreecommitdiffstats
path: root/core/modules/system-tweaks
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-24 12:30:51 +0100
committerSimon Rettberg2023-01-24 12:30:51 +0100
commit929fc1137e3a5508610956988cdab5310caef12b (patch)
tree785a71bfb2b789913f248ca2306945310eff737d /core/modules/system-tweaks
parent[qemu-src] --disable-werror (diff)
downloadmltk-929fc1137e3a5508610956988cdab5310caef12b.tar.gz
mltk-929fc1137e3a5508610956988cdab5310caef12b.tar.xz
mltk-929fc1137e3a5508610956988cdab5310caef12b.zip
[system-tweaks] Add timeouts to shutdown/reboot
Diffstat (limited to 'core/modules/system-tweaks')
-rw-r--r--core/modules/system-tweaks/data/etc/systemd/system.conf.d/10-enable-watchdog.conf3
-rw-r--r--core/modules/system-tweaks/data/etc/systemd/system/kexec.target.d/00-force-reboot.conf3
-rw-r--r--core/modules/system-tweaks/data/etc/systemd/system/poweroff.target.d/00-force-reboot.conf3
-rw-r--r--core/modules/system-tweaks/data/etc/systemd/system/reboot.target.d/00-force-reboot.conf3
4 files changed, 12 insertions, 0 deletions
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