From 102a1e15ba050cf9e3440b1671ce9772c31f3aef Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Oct 2010 16:03:37 +0000 Subject: [PATCH] * Use the "iburst" flag. This makes ntpd synchronise in a few seconds rather than a few minutes by sending an initial burst of messages to the time servers. svn path=/nixos/trunk/; revision=24119 --- modules/services/networking/ntpd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/networking/ntpd.nix b/modules/services/networking/ntpd.nix index a50229125d1..f0b96951eb1 100644 --- a/modules/services/networking/ntpd.nix +++ b/modules/services/networking/ntpd.nix @@ -20,7 +20,7 @@ let # chroot to ${stateDir}, we have to specify it as /ntp.drift. driftfile /ntp.drift - ${toString (map (server: "server " + server + "\n") servers)} + ${toString (map (server: "server " + server + " iburst\n") servers)} ''; ntpFlags = "-c ${configFile} -u ${ntpUser}:nogroup -i ${stateDir}";