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