Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2021 08:42:19 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Ian Lepore <ian@freebsd.org>
Cc:        freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: Timezone problems on -current
Message-ID:  <20210504154219.GA47280@www.zefox.net>
In-Reply-To: <8e4843ce80e9bc005da5ca42d43e0bc34ce2c6ff.camel@freebsd.org>
References:  <20210503153442.GB37236@www.zefox.net> <YJCf00lvkp%2BUyamn@cloud.zyxst.net> <20210504015222.GE37236@www.zefox.net> <8e4843ce80e9bc005da5ca42d43e0bc34ce2c6ff.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 04, 2021 at 08:42:14AM -0600, Ian Lepore wrote:
> On Mon, 2021-05-03 at 18:52 -0700, bob prohaska wrote:
> > 
> > Up to now I've used only the line 
> > ntpdate_enable="YES"
> > and it's been enough to keep the clock sane. On the last reboot
> > it appears ntpdate either didn't run or failed silently. The most
> 
> You don't need to be running ntpdate at all.  ntpd_sync_on_start gives
> you the same effect... it allows ntpd to step the clock any required
> amount, one time at startup.  It's useful for systems that don't have a
> battery-backed clock.
> 
It seems clear that ntpd_sync_on_start is a better choice than ntpdate.
Clock drift on the Pi seems fairly slow, a couple seconds a month, but
staying right on can't hurt and doesn't cost much. 

> I like to set kern.timecounter.stepwarnings=1 in /etc/sysctl.conf so I
> have a record in syslog of when ntpd steps the clock.

Most of my trouble seems to have been caused by timesetting not running at
startup and me not noticing promptly. A combination of ntpd_sync_on_start 
and a -g flag will set the clock and make a fuss in the logfiles if 
time drifts too far off. Is there a way to make a fuss if ntpd fails
to start in the first place or quits in mid-flight?

Thanks for writing!

bob prohaska




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210504154219.GA47280>