diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-26 20:37:18 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-26 20:37:18 -0700 |
commit | 3b44d98b4506830586bee5b56c6e90a4ee692934 (patch) | |
tree | 427fc8637f3bd88bf055f85927d4775ad5815d72 /templates/system/ntp | |
parent | 3e0d01a69b7f70977375ab73a51cfc5004813065 (diff) | |
download | vyatta-cfg-system-3b44d98b4506830586bee5b56c6e90a4ee692934.tar.gz vyatta-cfg-system-3b44d98b4506830586bee5b56c6e90a4ee692934.zip |
Use pgrep to check if ntp running
Diffstat (limited to 'templates/system/ntp')
-rw-r--r-- | templates/system/ntp/node.def | 2 |
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 |