summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2009-01-27 20:13:24 +0000
committerkeramida <keramida@FreeBSD.org>2009-01-27 20:13:24 +0000
commited75d66370286ae74d1656558e6549209acc6fe5 (patch)
treee835504d49dca7f6b8c6b8684d119a85a1b687e8
parent1390224b8b49d352c41b4718b41ab0d285cf7404 (diff)
downloadFreeBSD-src-ed75d66370286ae74d1656558e6549209acc6fe5.zip
FreeBSD-src-ed75d66370286ae74d1656558e6549209acc6fe5.tar.gz
When synchronizing the clock at system startup time, use both
the -g and -q options. They do a slightly different thing and both are necessary when the time difference is large. Noticed by: danger, in the forums Approved by: roberto MFC after: 1 week
-rwxr-xr-xetc/rc.d/ntpd2
-rw-r--r--share/man/man5/rc.conf.58
2 files changed, 7 insertions, 3 deletions
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd
index 7a4eef8..3e7a8c0 100755
--- a/etc/rc.d/ntpd
+++ b/etc/rc.d/ntpd
@@ -23,7 +23,7 @@ ntpd_precmd()
rc_flags="-c ${ntpd_config} ${ntpd_flags}"
if checkyesno ntpd_sync_on_start; then
- rc_flags="-g $rc_flags"
+ rc_flags="-q -g $rc_flags"
fi
if [ -z "$ntpd_chrootdir" ]; then
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index 593a358..d129178 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -2065,12 +2065,16 @@ If set to
.Xr ntpd 8
is run with the
.Fl g
-flag, which syncs the system's clock on startup.
+and
+.Fl q
+flags, which syncs the system's clock on startup.
See
.Xr ntpd 8
for more information regarding the
.Fl g
-option.
+and
+.Fl q
+options.
This is a preferred alternative to using
.Xr ntpdate 8
or specifying the
OpenPOWER on IntegriCloud