From owner-freebsd-current@freebsd.org Wed Jan 11 00:04:18 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27928CAAAF6 for ; Wed, 11 Jan 2017 00:04:18 +0000 (UTC) (envelope-from ronald@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E658D1B92; Wed, 11 Jan 2017 00:04:17 +0000 (UTC) (envelope-from ronald@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cR69v-0006Pd-Fx; Wed, 11 Jan 2017 00:48:55 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-current@freebsd.org Date: Wed, 11 Jan 2017 00:48:53 +0100 Cc: "Ian Lepore" Subject: rc.d/ntpdate broken since r311103 - /head/etc/ntp.conf - Update ntp.conf to use the ntpd pool feature MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: c74461a82029b6293650421ecb57b64a X-Mailman-Approved-At: Wed, 11 Jan 2017 00:14:54 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 00:04:18 -0000 Hello, Since the commit in the subject /etc/rc.d/ntpdate does not work anymore. # /etc/rc.d/ntpdate restart Setting date via ntp. 11 Jan 00:35:46 ntpdate[56020]: no servers can be used, exiting This diff fixes it for me: # diff -u /tmp/ntpdate /etc/rc.d/ntpdate --- /tmp/ntpdate 2017-01-11 00:41:58.736138000 +0100 +++ /etc/rc.d/ntpdate 2017-01-11 00:42:15.522986000 +0100 @@ -20,7 +20,7 @@ if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then ntpdate_hosts=`awk ' /^server[ \t]*127.127/ {next} - /^(server|peer)/ { + /^(server|peer|pool)/ { if ($2 ~/^-/) {print $3} else {print $2}} ' < "$ntpdate_config"` Regards, Ronald.