You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2016/12/21 16:24:01 UTC

incubator-ranger git commit: RANGER-1272:The program does not check the RANGER_PID_DIR_PATH variables corresponding to the path

Repository: incubator-ranger
Updated Branches:
  refs/heads/master 2f77beafa -> e19936732


RANGER-1272:The program does not check the RANGER_PID_DIR_PATH variables corresponding to the path

Signed-off-by: Colm O hEigeartaigh <co...@apache.org>


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

Branch: refs/heads/master
Commit: e1993673264810611bf46914c948c225281ec5c1
Parents: 2f77bea
Author: zhangqiang2 <zh...@zte.com.cn>
Authored: Tue Dec 20 20:45:08 2016 +0800
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Wed Dec 21 16:23:49 2016 +0000

----------------------------------------------------------------------
 embeddedwebserver/scripts/ranger-admin-services.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/e1993673/embeddedwebserver/scripts/ranger-admin-services.sh
----------------------------------------------------------------------
diff --git a/embeddedwebserver/scripts/ranger-admin-services.sh b/embeddedwebserver/scripts/ranger-admin-services.sh
index 65f9beb..c19598a 100755
--- a/embeddedwebserver/scripts/ranger-admin-services.sh
+++ b/embeddedwebserver/scripts/ranger-admin-services.sh
@@ -55,6 +55,13 @@ if [ -z "${RANGER_PID_DIR_PATH}" ]
 then
         RANGER_PID_DIR_PATH=/var/run/ranger
 fi
+
+if [ ! -d "${RANGER_PID_DIR_PATH}" ]
+then  
+	mkdir -p  $RANGER_PID_DIR_PATH
+	chmod 660 $RANGER_PID_DIR_PATH
+fi
+
 pidf=${RANGER_PID_DIR_PATH}/rangeradmin.pid
 
 if [ -z "${RANGER_USER}" ]