From 5e2bd5ea64e4abc77c6c0fc65f2388619d17acc1 Mon Sep 17 00:00:00 2001 From: "M. Vefa Bicakci" Date: Tue, 14 Mar 2017 17:34:57 +0300 Subject: [PATCH] qubes-core.service: Do not shut down/reboot before all VMs have shut down Prior to this commit, the qubes-core.service inherited systemd's default timeout value of 90 seconds. With slow hard disk drives, this caused the dom0 shut-down sequence to proceed even if some VMs were still not fully shut down at the time of dom0 shut down. This commit aims to avoid this issue by setting the service stop timeout to 180 seconds. Signed-off-by: M. Vefa Bicakci --- 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 1b9ee8a7..17ecc4aa 100644 --- a/linux/systemd/qubes-core.service +++ b/linux/systemd/qubes-core.service @@ -7,6 +7,8 @@ After=qubes-db-dom0.service libvirtd.service xenconsoled.service Type=oneshot StandardOutput=syslog RemainAfterExit=yes +# Needed to avoid rebooting before all VMs have shut down. +TimeoutStopSec=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