Paste number 328400: ntpd fix

Paste number 328400: ntpd fix
Pasted by: lfam
When:5 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+71E8
Channel:None
Paste contents:
Raw Source | XML | Display As
From f1eb5f6a5c5b2609c46881095ae5faf0c2453eba Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Wed, 12 Oct 2016 19:12:30 -0400
Subject: [PATCH] services: ntpd: Make large clock adjustments if necessary.

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

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.