3 # System-V init script for the openntp daemon
8 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
9 DESC
="network time protocol daemon"
11 DAEMON
=/usr
/sbin
/$NAME
13 # Gracefully exit if the package has been removed.
14 test -x $DAEMON ||
exit 0
16 # Read config file if it is present.
17 if [ -r /etc
/default
/$NAME ]
23 start
) echo -n "Starting $DESC: $NAME"
24 start-stop-daemon
-S -q -x $DAEMON
27 stop
) echo -n "Stopping $DESC: $NAME"
28 start-stop-daemon
-K -q -n $NAME
31 reload|force-reload
) echo -n "Reloading $DESC configuration..."
32 start-stop-daemon
-K -q -n $NAME -s 1
35 restart
) echo -n "Restarting $DESC: $NAME"
36 start-stop-daemon
-K -q -n $NAME
38 start-stop-daemon
-S -q -x $DAEMON
41 *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2