freebsd-dev/contrib/ntp/scripts/ntp-restart

11 lines
266 B
Plaintext
Raw Normal View History

1999-12-09 13:01:21 +00:00
#!/bin/sh
#
# This script can be used to kill and restart the NTP daemon. Edit the
2001-08-29 14:35:15 +00:00
# /usr/local/bin/ntpd line to fit.
1999-12-09 13:01:21 +00:00
#
2001-08-29 14:35:15 +00:00
kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
1999-12-09 13:01:21 +00:00
sleep 10
2001-08-29 14:35:15 +00:00
/usr/local/bin/ntpd -g
/usr/local/bin/ntp-wait
1999-12-09 13:01:21 +00:00
exit 0