opt/openntpd/ntpd
2006-02-23 15:26:10 +00:00

27 lines
350 B
Bash

#!/bin/sh
#
# /etc/rc.d/ntpd: start/stop ntp daemon
#
# comment or clear $NTPD_OPTS to disable initial clock set on startup
NTPD_OPTS="-s"
case $1 in
start)
/usr/sbin/ntpd $NTPD_OPTS
;;
stop)
killall -q /usr/sbin/ntpd
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file