[Linux] ntpdate slew模式調整時間

tolilong發表於2017-02-10

 ntpdate slew模式微調時間crontab,參考

[hostname]# crontab -l
* * * * * /usr/sbin/ntpdate -B xxx.xxx.xxx.xxx 1>>/tmp/ntpdate.log 2>&1


-B引數的意思          Force  the  time to always be slewed using the adjtime() system call, even if the measured
                            offset is greater than +-500 ms. The default is to step the time using  settimeofday()  if
                            the  offset  is greater than +-500 ms. Note that, if the offset is much greater than +-500
                            ms in this case, that it can take a long time (hours) to slew the  clock  to  the  correct
                            value. During this time. the host should not be used to synchronize clients.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2133342/,如需轉載,請註明出處,否則將追究法律責任。

相關文章