knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject git commit: KNOX-382 fixed extraneous output in shell scripts
Date Wed, 21 May 2014 16:03:36 GMT
Repository: knox
Updated Branches:
  refs/heads/master 42dfaaee5 -> 8100d409e


KNOX-382 fixed extraneous output in shell scripts

Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/8100d409
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/8100d409
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/8100d409

Branch: refs/heads/master
Commit: 8100d409e547be5f15918d8ef1fcce260c27a65e
Parents: 42dfaae
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Wed May 21 12:03:23 2014 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Wed May 21 12:03:23 2014 -0400

----------------------------------------------------------------------
 gateway-release/home/bin/gateway.sh | 4 +---
 gateway-release/home/bin/ldap.sh    | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/8100d409/gateway-release/home/bin/gateway.sh
----------------------------------------------------------------------
diff --git a/gateway-release/home/bin/gateway.sh b/gateway-release/home/bin/gateway.sh
index 173fcf4..10e2985 100755
--- a/gateway-release/home/bin/gateway.sh
+++ b/gateway-release/home/bin/gateway.sh
@@ -221,10 +221,8 @@ function getPID {
    
    APP_PID="$(<$APP_PID_FILE)"
 
-   if ps -p $APP_PID > /dev/null
+   if [ ! $APP_PD > /dev/null ];
    then
-     echo "$PID is running"
-   else
      return 1
    fi
 

http://git-wip-us.apache.org/repos/asf/knox/blob/8100d409/gateway-release/home/bin/ldap.sh
----------------------------------------------------------------------
diff --git a/gateway-release/home/bin/ldap.sh b/gateway-release/home/bin/ldap.sh
index 27f0c1a..1f33555 100755
--- a/gateway-release/home/bin/ldap.sh
+++ b/gateway-release/home/bin/ldap.sh
@@ -209,10 +209,8 @@ function getPID {
    
    APP_PID="$(<$APP_PID_FILE)"
 
-   if ps -p $APP_PID > /dev/null
+   if [ ! $APP_PD > /dev/null ];
    then
-     echo "$PID is running"
-   else
      return 1
    fi
       


Mime
View raw message