From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 1/1] services: ntpd: Make large clock adjustments if necessary. Date: Wed, 12 Oct 2016 19:21:07 -0400 Message-ID: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buSqC-0001vT-TB for guix-devel@gnu.org; Wed, 12 Oct 2016 19:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buSq7-0002vo-4C for guix-devel@gnu.org; Wed, 12 Oct 2016 19:21:40 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buSq5-0002rV-RC for guix-devel@gnu.org; Wed, 12 Oct 2016 19:21:35 -0400 Received: from localhost.localdomain (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 900C2F29D1 for ; Wed, 12 Oct 2016 19:21:24 -0400 (EDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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