Repository: ranger Updated Branches: refs/heads/master f3221e150 -> 1a553b4c8
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/1a553b4c Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/1a553b4c Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/1a553b4c Branch: refs/heads/master Commit: 1a553b4c85fbff00a32376e25d2f503644bd0621 Parents: f3221e1 Author: Bhavik Patel <[email protected]> Authored: Mon Oct 15 17:04:34 2018 +0530 Committer: Mehul Parikh <[email protected]> Committed: Wed Oct 17 10:27:23 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/1a553b4c/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/1a553b4c/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..."
