~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to debian/ntpdate.init.d

  • Committer: Bazaar Package Importer
  • Author(s): Bdale Garbee
  • Date: 2002-03-23 00:22:31 UTC
  • Revision ID: james.westby@ubuntu.com-20020323002231-exmq9hd6ivvu1b6x
Tags: 1:4.1.0-8
move to US main!  Yippee!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
test -f /usr/sbin/ntpdate || exit 0
 
4
test -f /etc/default/ntp-servers || exit 0
 
5
 
 
6
. /etc/default/ntp-servers
 
7
 
 
8
test -n "$NTPSERVERS" || exit 0
 
9
 
 
10
case "$1" in
 
11
start|restart|force-reload)
 
12
  echo -n "Running ntpdate to synchronize clock"
 
13
  /usr/sbin/ntpdate -u -b -s $NTPSERVERS
 
14
  echo "."
 
15
  ;;
 
16
stop)
 
17
  ;;
 
18
*)
 
19
  echo "Usage: /etc/init.d/ntpdate {start|stop|restart|force-reload}"
 
20
  exit 1
 
21
esac
 
22
 
 
23
exit 0