1275970Scy#!/bin/sh
2275970Scy#
3275970Scy# This script can be used to kill and restart the NTP daemon. Edit the
4275970Scy# /usr/local/bin/ntpd line to fit.
5275970Scy#
6275970Scykill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
7275970Scysleep 10
8275970Scy/usr/local/bin/ntpd -g
9275970Scy/usr/local/bin/ntp-wait
10275970Scyexit 0
11