Changed files:
ntp.upstart -> 1.2
ntpdate.upstart -> 1.2
script
# Source old-style ntp service configuration
[ -f /etc/sysconfig/ntpd ] && . /etc/sysconfig/ntpd
-
+
exec /usr/sbin/ntpd -n -c /etc/ntp/ntp.conf -p /var/run/ntpd.pid ${NTPD_USER:+-u $NTPD_USER} $NTPD_OPTIONS
end script
description "Synchronizes time with ntpdate (NTP client)"
-# TODO: act on "have default gateway"
+# TODO: act on "have default gateway"
# start on net-device-added INTERFACE!=lo
# TODO: run before ntpd
script
# Source old-style ntp service configuration
[ -f /etc/sysconfig/ntpdate ] && . /etc/sysconfig/ntpdate
-
+
/usr/sbin/ntpdate -s ${NTPDATE_USER:+-U $NTPDATE_USER} $NTPDATE_OPTIONS $NTPDATE_SERVERS
if [ "$SYNC_HWCLOCK" = "yes" ]; then