Page MenuHomeFreeBSD

bsdinstall(8): replace ntpdate by ntpd_sync_on_start on the 'services' dialog
ClosedPublic

Authored by egypcio on Aug 15 2022, 10:46 AM.
Tags
None
Referenced Files
F103079626: D36206.diff
Wed, Nov 20, 4:25 PM
Unknown Object (File)
Sat, Nov 16, 10:54 PM
Unknown Object (File)
Thu, Nov 7, 8:15 PM
Unknown Object (File)
Tue, Nov 5, 2:41 PM
Unknown Object (File)
Oct 14 2024, 2:36 PM
Unknown Object (File)
Sep 18 2024, 3:57 AM
Unknown Object (File)
Sep 17 2024, 11:41 AM
Unknown Object (File)
Sep 16 2024, 1:10 PM
Subscribers

Details

Summary

by applying this patch we:

  • change current NTP services offered by the FreeBSD Installer;
  • no longer offer ntpdate to be enabled and started on boot;
  • start offering the option to make ntpd set the date and time on boot itself.

the motivation for this change comes from the ntpdate(8) manpage:

Note: The functionality of 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.

offering ntpd_sync_on_start to be used will give folks the option to append -g into ntpd's command_args.

according to ntpd(8)'s manpage:

-g, --panicgate
             Allow the first adjustment to be Big.  This option may appear an
             unlimited number of times.

             Normally, ntpd exits with a message to the system log if the
             offset exceeds the panic threshold, which is 1000 s by default.
             This option allows the time to be set to any value without
             restriction; however, this can happen only once. If the threshold
             is exceeded after that, ntpd will exit with a message to the
             system log. This option can be used with the -q and -x options.
             See the tinker configuration file directive for other options.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable