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

« back to all changes in this revision

Viewing changes to debian/ntp-simple.init.d

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
FLAGS="defaults 23"
4
 
 
5
 
test -f /usr/sbin/ntpd || exit 0
6
 
 
7
 
case "$1" in
8
 
        start)
9
 
                echo -n "Starting NTP server: ntpd"
10
 
                start-stop-daemon --start --quiet --exec /usr/sbin/ntpd
11
 
                echo "."
12
 
                ;;
13
 
        stop)
14
 
                echo -n "Stopping NTP server: ntpd"
15
 
                start-stop-daemon --stop --quiet --exec /usr/sbin/ntpd
16
 
                echo "."
17
 
                ;;
18
 
        restart|force-reload)
19
 
                echo -n "Restarting NTP server: ntpd... "
20
 
                start-stop-daemon --stop --quiet --exec /usr/sbin/ntpd
21
 
                sleep 2
22
 
                start-stop-daemon --start --quiet --exec /usr/sbin/ntpd
23
 
                echo "done."
24
 
                ;;
25
 
        *)
26
 
                echo "Usage: /etc/init.d/ntp {start|stop|restart|force-reload}"
27
 
                exit 1
28
 
                ;;
29
 
esac
30
 
 
31
 
exit 0