Ntpd
ntpd
是否設置硬體時鐘?
是否
ntpd
設置硬體時鐘?如果我通過選項(意味著一次性更正),是否
ntpd
設置硬體時鐘?-q
Linux 3.5.6,ntp 4.2.6.p5。
這裡寫到 ntpd 每 11 分鐘將系統時鐘與硬體同步一次,但我在 ntpd mans 中找不到對此的參考。
在Serverfault.com上提出了類似的問題。這就是答案。
從
hwclock
RHEL 4.6 的手冊頁中:This mode (we'll call it "11 minute mode") is off until something turns it on. The ntp daemon xntpd is one thing that turns it on. You can turn it off by running anything, including hwclock --hctosys, that sets the System Time the old fashioned way. To see if it is on or off, use the command adjtimex --print and look at the value of "status". If the "64" bit of this number (expressed in binary) equal to 0, 11 minute mode is on. Otherwise, it is off.
因此,由於您正在跑步,
hwclock --set
您可能已經將其關閉。出於同樣的原因,您可以檢查輸出以adjtimex --print
進行確認。