154359Sroberto#!/bin/sh 254359Sroberto# 354359Sroberto# This script can be used to kill and restart the NTP daemon. Edit the 482498Sroberto# /usr/local/bin/ntpd line to fit. 554359Sroberto# 682498Srobertokill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/` 754359Srobertosleep 10 882498Sroberto/usr/local/bin/ntpd -g 982498Sroberto/usr/local/bin/ntp-wait 1054359Srobertoexit 0 11