2013-03-15

ntpdate service on Fedora 18 (Spherical Cow)

I had trouble getting ntp to sync time: starting the ntpdate service gave errors. Manually running ntpdate produced the error message "no server suitable for synchronization found". This answer at serverfault fixed it for me.

Made a change to /etc/sysconfig/ntpdate:

# Options for ntpdate
OPTIONS="-u -p 2"
# Number of retries before giving up
RETRIES=2
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=yes
Then, enable the service and start it:
$ sudo systemctl enable ntpdate.service
$ sudo systemctl start ntpdate.service
An annoyance: systemctl and sysctl are way too similar and do completely different things.

2 comments:

  1. Interesting. /etc/sysconfig/ntpdate doesn't exist on my F18 installation and systemctl doesn't seem to know anything about it. Some searching turned up "chronyd", which seems to have replaced ntpd? My ntp has been working ever since install time, but I didn't realize that under the hood it was using chrony rather than ntpd/ntpdate.

    ReplyDelete
    Replies
    1. Now that you mention it, I vaguely recall running into chronyd when learning puppet on Fedora. It could be that my installation had an /etc/sysconfig/ntpdate because I updated it from F17.

      Delete

Note: Only a member of this blog may post a comment.