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
This commit is contained in:
Giorgos Keramidas 2009-01-27 20:13:24 +00:00
parent c57c9cb6be
commit 2ba7d35b21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187782
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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