Reduce watchdog reboot time to 3 minutes

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-20 12:35:50 +02:00
parent 369b6ddadf
commit bd556bcc11
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -1,7 +1,7 @@
{ ... }: { ... }:
{ {
systemd.watchdog.runtimeTime = "60s"; systemd.watchdog.runtimeTime = "60s";
systemd.watchdog.rebootTime = "10m"; systemd.watchdog.rebootTime = "3m";
systemd.watchdog.kexecTime = "5m"; systemd.watchdog.kexecTime = "5m";
systemd.services."emergency".serviceConfig.ExecStartPre = "/bin/sh -c \"read -t 30 || /run/current-system/sw/bin/systemctl reboot\""; systemd.services."emergency".serviceConfig.ExecStartPre = "/bin/sh -c \"read -t 30 || /run/current-system/sw/bin/systemctl reboot\"";
} }