From 35a7d5ef53bc9eb15047c3194f6fcb51d37ba2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 29 Feb 2016 13:31:25 +0100 Subject: [PATCH] pm-utils: do not leave background tasks - will be killed by systemd qvm-sync-clock running in background is killed as soon as qubes-suspend.service is terminated. Additionally restore --verbose option, which was the case (implicitly) in previous qvm-run based code. Fixes QubesOS/qubes-issues#1795 (cherry picked from commit b19ba4dc2deb9c3a8d80abcc38aeb597d68b28d2) --- pm-utils/01qubes-sync-vms-clock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm-utils/01qubes-sync-vms-clock b/pm-utils/01qubes-sync-vms-clock index 5bb8516..021f17f 100755 --- a/pm-utils/01qubes-sync-vms-clock +++ b/pm-utils/01qubes-sync-vms-clock @@ -8,7 +8,7 @@ sync_qubes_vms_wallclock() echo "Syncing VMs clock to: $DATE" qvm-run --all -u root --localcmd="date -u -Iseconds" "qubes.SetDateTime dom0" # Then try to sync from the network - /usr/bin/qvm-sync-clock & + /usr/bin/qvm-sync-clock } case "$1" in