File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / scripts / ntp-restart
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 1 month ago) by misho
CVS tags: MAIN, HEAD
Initial revision

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>