unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 1/1] services: ntpd: Make large clock adjustments if necessary.
@ 2016-10-12 23:21 Leo Famulari
  2016-10-13  5:06 ` John Darrington
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2016-10-12 23:21 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-20 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 23:21 [PATCH 1/1] services: ntpd: Make large clock adjustments if necessary Leo Famulari
2016-10-13  5:06 ` John Darrington
2016-10-13 14:12   ` Leo Famulari
2016-10-19 20:49     ` Ludovic Courtès
2016-10-19 21:39       ` Leo Famulari
2016-10-20 19:44         ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).