Running ntsysv on my CentOS terminal show both ntpd and ntpdate checked. Is it redundant to have both service to run at start-up?
Answer
They do different things.
ntpdateis what you might consider "one shot mode". It runs once and updates the clock if it receives a response from the remote ntp server.ntpdruns continuously and adjusts the clock slightly to account for drift and to stay in sync with the remote ntp server.ntpd(by default) will not make any adjustments greater than 2 seconds.
It's common to run ntpdate at system boot to ensure the clock is in sync and then run ntpd to keep it in sync. If for example when your computer boots, the clock is off by 3 seconds then ntpd would assume that it's too great a jump to adjust, and therefore do nothing. Your system would then drift even further out of sync.
Comments
Post a Comment