Repository: ranger
Updated Branches:
  refs/heads/ranger-1.1 fcdbd738f -> 634999e52


RANGER-2229 : Perform graceful terminate with retries before doing forceful

Signed-off-by: Mehul Parikh <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/634999e5
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/634999e5
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/634999e5

Branch: refs/heads/ranger-1.1
Commit: 634999e52fdaf497027b534173766cb9b9185882
Parents: fcdbd73
Author: Bhavik Patel <[email protected]>
Authored: Mon Oct 15 17:04:34 2018 +0530
Committer: Mehul Parikh <[email protected]>
Committed: Wed Oct 17 10:35:20 2018 +0530

----------------------------------------------------------------------
 tagsync/scripts/ranger-tagsync-services.sh          | 4 ++--
 unixauthservice/scripts/ranger-usersync-services.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/634999e5/tagsync/scripts/ranger-tagsync-services.sh
----------------------------------------------------------------------
diff --git a/tagsync/scripts/ranger-tagsync-services.sh 
b/tagsync/scripts/ranger-tagsync-services.sh
index a4ad7b1..6fcdf15 100755
--- a/tagsync/scripts/ranger-tagsync-services.sh
+++ b/tagsync/scripts/ranger-tagsync-services.sh
@@ -81,7 +81,7 @@ if [ "${action}" == "START" ]; then
                if  ps -p $pid > /dev/null
                then
                        echo "Apache Ranger Tagsync Service is already running 
[pid={$pid}]"
-                       exit 1
+                       exit ;
                else
                        rm -rf $pidf
                fi
@@ -118,7 +118,7 @@ elif [ "${action}" == "STOP" ]; then
                        echo "pid file($pidf) not present, taking pid from 
\'ps\' command.."
                else
                        echo "Apache Ranger Tagsync Service is not running"
-                       exit 1  
+                       return  
                fi
        fi
        echo "Found Apache Ranger Tagsync Service with pid $pid, Stopping it..."

http://git-wip-us.apache.org/repos/asf/ranger/blob/634999e5/unixauthservice/scripts/ranger-usersync-services.sh
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/ranger-usersync-services.sh 
b/unixauthservice/scripts/ranger-usersync-services.sh
index 476aa0c..0c03c5a 100644
--- a/unixauthservice/scripts/ranger-usersync-services.sh
+++ b/unixauthservice/scripts/ranger-usersync-services.sh
@@ -138,7 +138,7 @@ elif [ "${action}" == "STOP" ]; then
                        echo "pid file($pidf) not present, taking pid from 
\'ps\' command.."
                else
                        echo "Apache Ranger Usersync Service is not running"
-                       exit 1  
+                       return  
                fi
        fi
        echo "Found Apache Ranger Usersync Service with pid $pid, Stopping 
it..."

Reply via email to