2006-02-23 15:26:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2008-06-18 02:27:51 +02:00
|
|
|
# /etc/rc.d/ntpd: start/stop ntpd daemon
|
2006-02-23 15:26:10 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2008-06-18 02:27:51 +02:00
|
|
|
/usr/sbin/ntpd -s
|
2006-02-23 15:26:10 +00:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
killall -q /usr/sbin/ntpd
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 2
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 [start|stop|restart]"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|