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

    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

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