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.
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.
ReplyDeleteNow 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