Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running ntsysv on my CentOS terminal show both ntpd and ntpdate checked. Is it redundant to have both service to run at start-up?

share|improve this question
up vote 9 down vote accepted

They do different things.

  • ntpdate is what you might consider "one shot mode". It runs once and updates the clock if it receives a response from the remote ntp server.
  • ntpd runs 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.

share|improve this answer

The usual way is to run ntpdate before starting ntpd.

Ntpdate is not a service, but a command that sets the time from an ntp server. Then ntpd keeps the time synchronized. The reason for doing this is that ntpd exits if the time difference is too great.

share|improve this answer
1  
Well ntpdate is listed among the services on ntsysv – MegaNairda Jul 4 '12 at 7:44
1  
I would guess that they wrapped a service around it to ensure that it runs before ntpd, but after the networking services it needs. – fstx Jul 4 '12 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .