]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt-guests: run after time-sync.target
authorJim Fehlig <jfehlig@suse.com>
Mon, 8 Sep 2014 16:22:14 +0000 (10:22 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 23 Sep 2014 20:35:43 +0000 (14:35 -0600)
When libvirt-guests is configured to start guests on host
boot, it is possible for guests start and read the host
clock before it is synchronized.  Services such as
libvirt-guests that require correct time should use the
Special Passive System Unit time-sync.target

http://www.freedesktop.org/software/systemd/man/systemd.special.html#time-sync.target

tools/libvirt-guests.service.in

index d8d7adfaca16813f9e50fdc1131db79435d42beb..cc04b6df8c3c8c38839fef350fbee7e5d0e43e6e 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=Suspend Active Libvirt Guests
-After=network.target libvirtd.service
+After=network.target libvirtd.service time-sync.target
 Documentation=man:libvirtd(8)
 Documentation=http://libvirt.org