]> git.pld-linux.org Git - packages/ntp.git/commitdiff
- use ntpdate-wrapper here as well
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Feb 2012 21:21:21 +0000 (21:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ntpdate.upstart -> 1.3

ntpdate.upstart

index 58f5c44bc74d5b1dfa768c9a26ea23d4523c41c7..2f55a120ac5c2c00dbaa439cd0f4fce7db8df424 100644 (file)
@@ -7,20 +7,9 @@ description "Synchronizes time with ntpdate (NTP client)"
 start on pld.network-started
 stop on pld.shutdown-started
 
-env NTPDATE_USER="ntp"
-
 task
 
 # mark that ntpdate fail is ok (task marked as done and hwclock skipped)
 normal exit 0 1
 
-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
-               /sbin/hwclock --systohc
-       fi
-end script
+exec /usr/sbin/ntpdate-wrapper
This page took 0.044659 seconds and 4 git commands to generate.