On Sun, Nov 06, 2022 at 05:12:12AM +0000, indivC wrote: > I'm a little confused with the man page for ntpd. > > For the '-n' flag, it says: > 'Configtest mode. Only check the configuration file for validity.'. > I have no problem with this and understand it. > > However, the section below that, which is still under '-n', says: > 'ntpd will stay in the foreground for up to 15 seconds > waiting for one of the configured NTP servers to reply.'. > > The second section seems to contradict the first, in my opinion. > If '-n' is only checking the configuration for validity, > then contacting an NTP server would be outside the scope > of file validation. > > Any clarity on this would be helpful. Thanks. >
that extra bit of text belonged to the (now removed) -s option. -s was removed in revision 1.44, but that text got left in there by mistake. most worryingly, it's taken 3 years for anyone to notice! -s Always try to set the time at startup. By default ntpd attempts to set the time at boot only if constraints are figured and satisfied, and the clock should be moved forward. ntpd will stay in the foreground for up to 15 seconds waiting for one of the configured NTP servers to reply. i personally ok'd that commit! anyway, i've removed it. thanks for the mail. jmc