[libvirt] [PATCH V2] libvirt-guests: run after time-sync.target

Eric Blake eblake at redhat.com
Tue Sep 23 19:06:18 UTC 2014


On 09/23/2014 11:53 AM, Jim Fehlig wrote:
> 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
> Signed-off-by: Jim Fehlig <jfehlig at suse.com>
> ---
> 
> V2 of
> 
> https://www.redhat.com/archives/libvir-list/2014-September/msg00426.html
> 
> In V2: Use time-sync.target instead of ntp-wait.service

ACK

> 
>  tools/libvirt-guests.service.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/libvirt-guests.service.in b/tools/libvirt-guests.service.in
> index d8d7adf..cc04b6d 100644
> --- a/tools/libvirt-guests.service.in
> +++ b/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 time-sync.target
>  Documentation=man:libvirtd(8)
>  Documentation=http://libvirt.org
>  
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140923/0e8d3791/attachment-0001.sig>


More information about the libvir-list mailing list