3 [ -x /usr
/sbin
/ntpd
] ||
exit 0
4 [ -f /etc
/ntpd.conf
] ||
exit 0
8 printf "Starting openntpd: "
9 start-stop-daemon
-S -x /usr
/sbin
/ntpd
-- -s -p /run
/ntpd.pid
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
13 printf "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}"