summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/scripts/ntp-restart
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/scripts/ntp-restart')
-rwxr-xr-xcontrib/ntp/scripts/ntp-restart7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/ntp/scripts/ntp-restart b/contrib/ntp/scripts/ntp-restart
index d2023f0..0a1d58a 100755
--- a/contrib/ntp/scripts/ntp-restart
+++ b/contrib/ntp/scripts/ntp-restart
@@ -1,9 +1,10 @@
#!/bin/sh
#
# This script can be used to kill and restart the NTP daemon. Edit the
-# /usr/local/bin/xntpd line to fit.
+# /usr/local/bin/ntpd line to fit.
#
-kill -INT `ps -ax | egrep "xntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
+kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
sleep 10
-/usr/local/bin/xntpd
+/usr/local/bin/ntpd -g
+/usr/local/bin/ntp-wait
exit 0
OpenPOWER on IntegriCloud