xref: /netbsd-src/external/bsd/ntp/dist/scripts/deprecated/ntp-restart (revision 53b02e147d4ed531c0d2a5ca9b3e8026ba3e99b5)
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#
6kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
7sleep 10
8/usr/local/bin/ntpd -g
9/usr/local/bin/ntp-wait
10exit 0
11