summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-26 20:37:18 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-26 20:37:18 -0700
commit3b44d98b4506830586bee5b56c6e90a4ee692934 (patch)
tree427fc8637f3bd88bf055f85927d4775ad5815d72
parent3e0d01a69b7f70977375ab73a51cfc5004813065 (diff)
downloadvyatta-cfg-system-3b44d98b4506830586bee5b56c6e90a4ee692934.tar.gz
vyatta-cfg-system-3b44d98b4506830586bee5b56c6e90a4ee692934.zip
Use pgrep to check if ntp running
-rw-r--r--templates/system/ntp/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/ntp/node.def b/templates/system/ntp/node.def
index c5d99724..7a4ddad7 100644
--- a/templates/system/ntp/node.def
+++ b/templates/system/ntp/node.def
@@ -6,7 +6,7 @@ end:
sudo cp -b /tmp/ntp.conf /etc/ntp.conf
if grep -q '^server' /etc/ntp.conf
then
- if /usr/sbin/invoke-rc.d ntp status >/dev/null
+ if pgrep -f -u ntp /usr/sbin/ntpd > /dev/null
then
sudo /usr/sbin/invoke-rc.d ntp force-reload
else