aboutsummaryrefslogblamecommitdiff
path: root/usr.sbin/xntpd/scripts/ntp-restart
blob: d2023f0b67b292ee4b342895fe97829d39550e83 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                   
#!/bin/sh
#
# This script can be used to kill and restart the NTP daemon. Edit the
# /usr/local/bin/xntpd line to fit.
#
kill -INT `ps -ax | egrep "xntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
sleep 10
/usr/local/bin/xntpd
exit 0