blob: c66e461f2d7c616615886a89e12114f5877060b9 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/ntpd: start/stop ntp daemon
4 #
5
6 case $1 in
7 start)
8 /usr/bin/ntpd -gqx
9 /usr/bin/ntpd
10 ;;
11 stop)
12 /sbin/hwclock -w
13 killall -q /usr/bin/ntpd
14 ;;
15 restart)
16 $0 stop && sleep 3 && $0 start
17 ;;
18 *)
19 echo "usage: $0 [start|stop|restart]"
20 ;;
21 esac
22
23 # End of file
|