summaryrefslogtreecommitdiffstats
path: root/etc/defaults
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2004-09-14 03:01:38 +0000
committerseanc <seanc@FreeBSD.org>2004-09-14 03:01:38 +0000
commitdcf0d84fcdfee5b1132647f75132bb86285e750e (patch)
tree1faac5de72526daa278edf81f0d084ccb6eac754 /etc/defaults
parentc3040d05d99f755208218d8b447b91914d2dc9a7 (diff)
downloadFreeBSD-src-dcf0d84fcdfee5b1132647f75132bb86285e750e.zip
FreeBSD-src-dcf0d84fcdfee5b1132647f75132bb86285e750e.tar.gz
Stop using ntpdate(1) in our startup proceedure. Replace ntpdate(1) with
calls to ntpd -g. ntpd is noticably slower than ntpdate, but is also more accurate. This removes the nasty hackery in rc.d/ntpdate that would parse out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config file). By default, ntpd *will* sync with its listed time servers. To turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be added to /etc/rc.conf. If ntpd is not enabled (the default), then time is not synced on startup. ntpdate's use has been depreciated by the ntpd authors for quite some time so this change shouldn't be unexpected. Suggested by: des Approved by: roberto (resident ntp guru)
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/rc.conf4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 94eb637..792b53b 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -219,11 +219,9 @@ keyserv_flags="" # Flags to keyserv (if enabled).
### Network Time Services options: ###
timed_enable="NO" # Run the time daemon (or NO).
timed_flags="" # Flags to timed (if enabled).
-ntpdate_enable="NO" # Run ntpdate to sync time on boot (or NO).
-ntpdate_program="/usr/sbin/ntpdate" # path to ntpdate, if you want a different one.
-ntpdate_flags="-b" # Flags to ntpdate (if enabled).
ntpd_enable="NO" # Run ntpd Network Time Protocol (or NO).
ntpd_program="/usr/sbin/ntpd" # path to ntpd, if you want a different one.
+ntpd_sync_on_start="YES" # Sync time on ntpd startup, even if offset is high
ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"
# Flags to ntpd (if enabled).
OpenPOWER on IntegriCloud