3 [ -x /usr/sbin/ntpd ] || exit 0
4 [ -f /etc/ntpd.conf ] || exit 0
8 echo -n "Starting openntpd: "
9 start-stop-daemon -S -x /usr/sbin/ntpd -- -p /run/ntpd.pid
10 [ $? = 0 ] && echo "OK" || echo "FAIL"
13 echo -n "Stopping openntpd: "
14 start-stop-daemon -K -q -p /run/ntpd.pid
15 [ $? = 0 ] && echo "OK" || echo "FAIL"
23 echo "Usage: $0 {start|stop|restart}"