From owner-freebsd-current@freebsd.org Wed Jan 11 00:09:43 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 D11FDCAAC63 for ; Wed, 11 Jan 2017 00:09:43 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B69EB1C33 for ; Wed, 11 Jan 2017 00:09:43 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 4d38e801-d792-11e6-8c89-112185c90658 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 4d38e801-d792-11e6-8c89-112185c90658; Wed, 11 Jan 2017 00:10:04 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v0B09eDU007366; Tue, 10 Jan 2017 17:09:40 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1484093380.96230.94.camel@freebsd.org> Subject: Re: rc.d/ntpdate broken since r311103 - /head/etc/ntp.conf - Update ntp.conf to use the ntpd pool feature From: Ian Lepore To: Ronald Klop , freebsd-current@freebsd.org Date: Tue, 10 Jan 2017 17:09:40 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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:09:43 -0000 On Wed, 2017-01-11 at 00:48 +0100, Ronald Klop wrote: > 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. Ooops, my bad, I'll get it fixed asap. -- Ian