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

« back to all changes in this revision

Viewing changes to debian/ntp-server.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
PATH=/sbin:/bin
 
4
FLAGS="defaults 23"
 
5
 
 
6
test -f /usr/sbin/ntpd || exit 0
 
7
. /lib/lsb/init-functions
 
8
 
 
9
case "$1" in
 
10
        start)
 
11
                log_begin_msg "Starting NTP server..."
 
12
                start-stop-daemon --start --quiet --pidfile /var/run/ntpd.pid --exec /usr/sbin/ntpd -- -p /var/run/ntpd.pid
 
13
                log_end_msg $?
 
14
                ;;
 
15
        stop)
 
16
                log_begin_msg "Stopping NTP server..."
 
17
                start-stop-daemon --stop --quiet --pidfile /var/run/ntpd.pid
 
18
                log_end_msg $?
 
19
                ;;
 
20
        restart|force-reload)
 
21
                $0 stop
 
22
                sleep 1
 
23
                $0 start
 
24
                ;;
 
25
        *)
 
26
                log_success_msg "Usage: /etc/init.d/ntp-server {start|stop|restart|force-reload}"
 
27
                exit 1
 
28
                ;;
 
29
esac
 
30
 
 
31
exit 0