3 PATH=/sbin:/bin:/usr/bin
5 test -f /usr/bin/ntpdate || exit 0
7 if test -f /etc/default/ntpdate ; then
10 NTPSERVERS="pool.ntp.org"
13 test -n "$NTPSERVERS" || exit 0
17 echo -n "Running ntpdate to synchronize clock"
18 /usr/bin/ntpdate -u -b -s $NTPOPTIONS $NTPSERVERS
22 # Drop -b to slew clock rather than step it if called after system is up
23 echo -n "Running ntpdate to synchronize clock"
24 /usr/bin/ntpdate -u -s $NTPOPTIONS $NTPSERVERS
30 echo "Usage: /etc/init.d/ntpdate {start|stop|restart|reload|force-reload}"