From owner-freebsd-questions@freebsd.org Fri Jun 7 14:04:54 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE20215ADD38 for ; Fri, 7 Jun 2019 14:04:54 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (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 645BF73B61 for ; Fri, 7 Jun 2019 14:04:52 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id D6A7D1037A; Fri, 7 Jun 2019 15:04:44 +0100 (BST) Subject: Re: ntpd configutration -- a small suggestion from the peanut gallery To: Dave Cottlehuber , freebsd-questions References: <48793.1559715528@segfault.tristatelogic.com> <20190606171120.29f7fd85@gumby.homeunix.com> <37c862b6-f623-4210-9c77-c404e31f4808@www.fastmail.com> From: Arthur Chance Message-ID: <2ac65d8d-731e-45f6-18ba-c215704b32d9@qeng-ho.org> Date: Fri, 7 Jun 2019 15:04:44 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <37c862b6-f623-4210-9c77-c404e31f4808@www.fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 645BF73B61 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-5.77 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[qeng-ho.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx1.mythic-beasts.com,mx2.mythic-beasts.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; IP_SCORE(-2.50)[ip: (-7.57), ipnet: 217.155.0.0/16(-3.78), asn: 13037(-1.04), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2019 14:04:55 -0000 On 07/06/2019 09:57, Dave Cottlehuber wrote: > On Thu, 6 Jun 2019, at 18:14, RW via freebsd-questions wrote: >> On Wed, 5 Jun 2019 08:40:51 +0200 (CEST) >> Trond Endrestøl wrote: >> >>> On Tue, 4 Jun 2019 23:18-0700, Ronald F. Guilmette wrote: >>> >>>> I feel sure that I'll be able to figure out how to get ntpd properly >>>> enabled & configured, but I would just like to offer, hunbly, to the >>>> Powers That Be, that it would be Nice if ntpd, once enabled during >>>> install, just worked, you know, right outta the box. >>> >>> Adding >>> >>> ntpd_sync_on_start="YES" >>> >>> to /etc/rc.conf is one way. >> >> Perhaps it should be the default. > > It is in CURRENT[1] & would be worth MFC although possibly too late > for 11.3R. > > https://www.freebsd.org/cgi/man.cgi?query=ntpdate mentions: > > DESCRIPTION > Note: The functionality o this program is now available in the ntpd(8) > program. See the -q command line option in the ntpd(8) page. After a > suitable period of mourning, the ntpdate utility is to be retired from > this distribution. > > Perhaps a revision that uses ntpd_flags would be better? There is one advantage to using ntpdate_enable="YES" rather than ntpd_sync_on_start="YES" and that's the fact that ntpdate is blocking. When the rc script finishes you know the clock is correct, whereas with ntpd_sync_on_start the time step can be some time after the script has returned. If you run a daemon like dovecot that objects to time going backwards (and dies) that can be a problem. > --panicgate > > [2]: https://www.freebsd.org/cgi/man.cgi?query=ntpd > [1]: https://svnweb.freebsd.org/base?view=revision&revision=r326095 > > Author: manu > Date: Wed Nov 22 15:27:47 2017 +0000 > > bsdinstall: Add ntpdate option > > When you install a computer for the first time, the date in the CMOS sometimes > not accurate and you need to ntpdate as ntpd will fail a the time difference > is too big. > Add an option in bsdinstall to enable ntpdate that will do that for us. > > Reviewed by: allanjude > Differential Revision: https://reviews.freebsd.org/D13149 > -- What do we want? A time machine! When do we want it? Errm ...