From owner-freebsd-current@freebsd.org Wed Jan 11 04:39:16 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 67F93CAA4FC for ; Wed, 11 Jan 2017 04:39:16 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 333591390; Wed, 11 Jan 2017 04:39:15 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id RAggcf6abP4MrRAghc3CzZ; Tue, 10 Jan 2017 21:39:08 -0700 X-Authority-Analysis: v=2.2 cv=be0baKHB c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=8nJEP1OIZ-IA:10 a=IgFoBzBjUZAA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=eD2q0hPtAzQy1CqxnEEA:9 a=wPNLvfGTeEIA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id 5AF3D142; Tue, 10 Jan 2017 20:39:02 -0800 (PST) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v0B4chDC073588; Tue, 10 Jan 2017 20:38:44 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201701110438.v0B4chDC073588@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Ian Lepore cc: Ronald Klop , freebsd-current@freebsd.org Subject: Re: rc.d/ntpdate broken since r311103 - /head/etc/ntp.conf - Update ntp.conf to use the ntpd pool feature In-Reply-To: Message from Ian Lepore of "Tue, 10 Jan 2017 17:09:40 -0700." <1484093380.96230.94.camel@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 10 Jan 2017 20:38:43 -0800 X-CMAE-Envelope: MS4wfPk78E97KQTEdaR+sU2YsA+tk9Wse4NvIsTLxCriUhLY1pZAnB5iYGnn9I+nyqLdtz5Ekv7Pbvr4AnrnpCMdrIY51igzzqp/wVyfJ1nWLJKGF5U3B/kM NJzagud6/lao7P2G4fKQqRXIGPECDYa2ls6z61+YlIjGFvvQWf+evoJ41Q3fe7LhDkYKUtkjArAWTKIesUBEXDLcB4Zzi+HgG9WJYDK0MMI70BTSZCrv/pTB 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 04:39:16 -0000 In message <1484093380.96230.94.camel@freebsd.org>, Ian Lepore writes: > 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. Not all your bad. Those of us reviewing the change should picked up on that too. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.