python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ntp / S49ntp
blobb4047fcedac62585017d711e935391851c201666
1 #! /bin/sh
3 NAME=ntpd
4 DAEMON=/usr/sbin/$NAME
6 # Gracefully exit if the package has been removed.
7 test -x $DAEMON || exit 0
9 # Read config file if it is present.
10 if [ -r /etc/default/$NAME ]
11 then
12 . /etc/default/$NAME
15 case "$1" in
16 start)
17 printf "Starting $NAME: "
18 start-stop-daemon -S -q -x $DAEMON -- -g
19 [ $? = 0 ] && echo "OK" || echo "FAIL"
21 stop)
22 printf "Stopping $NAME: "
23 start-stop-daemon -K -q -n $NAME
24 [ $? = 0 ] && echo "OK" || echo "FAIL"
26 restart|reload)
27 echo "Restarting $NAME: "
28 $0 stop
29 sleep 1
30 $0 start
33 echo "Usage: $0 {start|stop|restart|reload}" >&2
34 exit 1
36 esac
38 exit 0