27 lines
350 B
Plaintext
27 lines
350 B
Plaintext
|
#!/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
|