guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/1] services: ntpd: Make large clock adjustments if necessary.


From: Leo Famulari
Subject: [PATCH 1/1] services: ntpd: Make large clock adjustments if necessary.
Date: Wed, 12 Oct 2016 19:21:07 -0400

If the system clock is more than 1000 seconds off, ntpd will exit without
adjusting the clock.

Reported by reepca on #guix.

* gnu/services/networking.scm (ntp-shepherd-service): Pass '-g' when
starting the NTP daemon.
---
 gnu/services/networking.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 7495179..5261e38 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -296,7 +296,7 @@ restrict -6 ::1\n"))
               (requirement '(user-processes networking))
               (start #~(make-forkexec-constructor
                         (list (string-append #$ntp "/bin/ntpd") "-n"
-                              "-c" #$ntpd.conf "-u" "ntpd")))
+                              "-c" #$ntpd.conf "-u" "ntpd" "-g")))
               (stop #~(make-kill-destructor))))))))
 
 (define %ntp-accounts
-- 
2.10.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]