PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/contrib/ntp/scripts/ntp-restart

https://bitbucket.org/freebsd/freebsd-head/
Shell | 10 lines | 5 code | 0 blank | 5 comment | 0 complexity | 9defffae77954b501a1db8dacde49cce MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
 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