1*2b15cb3dSCy Schubert#!/bin/sh 2*2b15cb3dSCy Schubert# 3*2b15cb3dSCy Schubert# This script can be used to kill and restart the NTP daemon. Edit the 4*2b15cb3dSCy Schubert# /usr/local/bin/ntpd line to fit. 5*2b15cb3dSCy Schubert# 6*2b15cb3dSCy Schubertkill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/` 7*2b15cb3dSCy Schubertsleep 10 8*2b15cb3dSCy Schubert/usr/local/bin/ntpd -g 9*2b15cb3dSCy Schubert/usr/local/bin/ntp-wait 10*2b15cb3dSCy Schubertexit 0 11