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:
parent
c57c9cb6be
commit
2ba7d35b21
@ -23,7 +23,7 @@ ntpd_precmd()
|
|||||||
rc_flags="-c ${ntpd_config} ${ntpd_flags}"
|
rc_flags="-c ${ntpd_config} ${ntpd_flags}"
|
||||||
|
|
||||||
if checkyesno ntpd_sync_on_start; then
|
if checkyesno ntpd_sync_on_start; then
|
||||||
rc_flags="-g $rc_flags"
|
rc_flags="-q -g $rc_flags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$ntpd_chrootdir" ]; then
|
if [ -z "$ntpd_chrootdir" ]; then
|
||||||
|
@ -2065,12 +2065,16 @@ If set to
|
|||||||
.Xr ntpd 8
|
.Xr ntpd 8
|
||||||
is run with the
|
is run with the
|
||||||
.Fl g
|
.Fl g
|
||||||
flag, which syncs the system's clock on startup.
|
and
|
||||||
|
.Fl q
|
||||||
|
flags, which syncs the system's clock on startup.
|
||||||
See
|
See
|
||||||
.Xr ntpd 8
|
.Xr ntpd 8
|
||||||
for more information regarding the
|
for more information regarding the
|
||||||
.Fl g
|
.Fl g
|
||||||
option.
|
and
|
||||||
|
.Fl q
|
||||||
|
options.
|
||||||
This is a preferred alternative to using
|
This is a preferred alternative to using
|
||||||
.Xr ntpdate 8
|
.Xr ntpdate 8
|
||||||
or specifying the
|
or specifying the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user