On 22.10.15 11:06, Trent W. Buck wrote:
> If you already install ISC ntpd, just use "ntpd -q".
> ntpdate is for people who *don't* install an ntpd.
> ntpd -q has been available since at least Debian 6 (Feb 2011).
Between your words of wisdom, and the ntpd manpage:
>>
-q Exit the ntpd just after the first time the clock is set.
This behavior mimics that of the ntpdate program, which is to be
retired.
<<
I'm convinced. (Crikey, I've moved from sendmail to postfix, vi to
vim, and SunOS to Solaris to Linux. This modernisation lark never stops.)
...
> PS: re "doesn't obey it's config file",
> in Debian there are hooks in ISC dhclient to restart ntpd every time it gets
> a lease,
> with a custom temporary ntpd.conf.
> Maybe ntpdate is using that instead of /etc/ntp.conf?
I could only locate an ntpd.conf while I had openntpd installed. It
doesn't exist with ntpdate and ntp installed. It is true that ntpdate
uses /etc/default/ntpdate, but it has the default I mentioned upthread:
On 21.10.15 23:59, Erik Christiansen wrote:
> # grep NTP_CONF /etc/default/ntpdate
> NTPDATE_USE_NTP_CONF=yes
I should have quoted the full stanza:
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=yes
Ditching ntpdate obviates any need to fuss with that.
Erik
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main