5
test -f /usr/sbin/ntpdate || exit 0
7
if test -f /etc/default/ntpdate ; then
10
NTPSERVERS="pool.ntp.org"
13
test -n "$NTPSERVERS" || exit 0
15
. /lib/lsb/init-functions
19
log_begin_msg "Synchronizing clock to $NTPSERVERS..."
20
/usr/sbin/ntpdate -b -s $NTPOPTIONS $NTPSERVERS
24
# Drop -b to slew clock rather than step it if called after system is up
25
log_begin_msg "Synchronizing clock to $NTPSERVERS..."
26
/usr/sbin/ntpdate -s $NTPOPTIONS $NTPSERVERS
32
log_success_msg "Usage: /etc/init.d/ntpdate {start|stop|restart|reload|force-reload}"