]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ntp/scripts/ntp-restart
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ntp / scripts / ntp-restart
1 #!/bin/sh
2 #
3 # This script can be used to kill and restart the NTP daemon. Edit the
4 # /usr/local/bin/ntpd line to fit.
5 #
6 kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
7 sleep 10
8 /usr/local/bin/ntpd -g
9 /usr/local/bin/ntp-wait
10 exit 0