1 1.1.1.1.10.2 snj #!/bin/sh 2 1.1.1.1.10.2 snj # 3 1.1.1.1.10.2 snj # This script can be used to kill and restart the NTP daemon. Edit the 4 1.1.1.1.10.2 snj # /usr/local/bin/ntpd line to fit. 5 1.1.1.1.10.2 snj # 6 1.1.1.1.10.2 snj kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/` 7 1.1.1.1.10.2 snj sleep 10 8 1.1.1.1.10.2 snj /usr/local/bin/ntpd -g 9 1.1.1.1.10.2 snj /usr/local/bin/ntp-wait 10 1.1.1.1.10.2 snj exit 0 11