From d07df4303172b191c5839311ebdfe3c9c69faa79 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Mon, 16 Oct 2023 20:35:23 -0400 Subject: [PATCH] Add a timeout to qubes-core.service This ensures that if there is a bug and the service hangs, the user is still able to use the system eventually, rather than having to edit the kernel command line to recover. Fixes: QubesOS/qubes-issues#8619 --- linux/systemd/qubes-core.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/systemd/qubes-core.service b/linux/systemd/qubes-core.service index 34ce40fde..107c6919c 100644 --- a/linux/systemd/qubes-core.service +++ b/linux/systemd/qubes-core.service @@ -9,6 +9,8 @@ StandardOutput=syslog RemainAfterExit=yes # Needed to avoid rebooting before all VMs have shut down. TimeoutStopSec=180 +# To prevent the system from hanging during startup if there is a bug +TimeoutStartSec=180 ExecStart=/usr/lib/qubes/startup-misc.sh ExecStop=/usr/bin/qvm-shutdown -q --all --wait # QubesDB daemons stop after 60s timeout in worst case; speed it up, since no