SHA256
1
0
forked from pool/libvirt
libvirt/libvirt-guests-wait-for-ntp.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

From 79a752f1eb5a6b6b4b900d8899dfb9712be824ec Mon Sep 17 00:00:00 2001
From: Jim Fehlig <jfehlig@suse.com>
Date: Mon, 8 Sep 2014 10:22:14 -0600
Subject: [PATCH] libvirt-guests: wait for ntp service
If an NTP server is configured on the host, it is possible for
libvirt-guests to start before the NTP service, in which case
guest clocks won't be synchronized to the host clock.
Add ntp-wait.service to "After" in libvirt-guests systemd service
file, ensuring NTP has synchronized the host clock before starting
any guests.
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
---
tools/libvirt-guests.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libvirt-1.2.8/tools/libvirt-guests.service.in
===================================================================
--- libvirt-1.2.8.orig/tools/libvirt-guests.service.in
+++ libvirt-1.2.8/tools/libvirt-guests.service.in
@@ -1,6 +1,6 @@
[Unit]
Description=Suspend Active Libvirt Guests
-After=network.target libvirtd.service
+After=network.target libvirtd.service ntp-wait.service
Documentation=man:libvirtd(8)
Documentation=http://libvirt.org