Repository: ranger
Updated Branches:
  refs/heads/ranger-1.2 9dae43b0b -> 25a465678


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

Branch: refs/heads/ranger-1.2
Commit: 25a46567857277f346d5aafc07de83111d8ac044
Parents: 9dae43b
Author: Bhavik Patel <[email protected]>
Authored: Mon Oct 15 17:04:34 2018 +0530
Committer: Mehul Parikh <[email protected]>
Committed: Wed Oct 17 13:58:52 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/25a46567/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/25a46567/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