Repository: ranger
Updated Branches:
  refs/heads/ranger-1 cbd100e8e -> 44f165278


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/44f16527
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/44f16527
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/44f16527

Branch: refs/heads/ranger-1
Commit: 44f1652780ae6367b898b15156bf91cab093d689
Parents: cbd100e
Author: Bhavik Patel <[email protected]>
Authored: Mon Oct 15 17:04:34 2018 +0530
Committer: Mehul Parikh <[email protected]>
Committed: Wed Oct 17 10:31:12 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/44f16527/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/44f16527/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