Repository: ranger Updated Branches: refs/heads/master bd40d5028 -> d0e5f24b2
RANGER-2071 : Correct log file permissions for Tagsync and usersync Project: http://git-wip-us.apache.org/repos/asf/ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/d0e5f24b Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/d0e5f24b Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/d0e5f24b Branch: refs/heads/master Commit: d0e5f24b2e412b33442aecce818dea19fdd6761a Parents: bd40d50 Author: Mehul Parikh <[email protected]> Authored: Wed Apr 18 14:03:24 2018 +0530 Committer: Mehul Parikh <[email protected]> Committed: Thu Apr 19 15:29:49 2018 +0530 ---------------------------------------------------------------------- tagsync/scripts/ranger-tagsync-services.sh | 2 +- unixauthservice/scripts/ranger-usersync-services.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ranger/blob/d0e5f24b/tagsync/scripts/ranger-tagsync-services.sh ---------------------------------------------------------------------- diff --git a/tagsync/scripts/ranger-tagsync-services.sh b/tagsync/scripts/ranger-tagsync-services.sh index 9b21a8f..5686390 100755 --- a/tagsync/scripts/ranger-tagsync-services.sh +++ b/tagsync/scripts/ranger-tagsync-services.sh @@ -88,7 +88,7 @@ if [ "${action}" == "START" ]; then fi cd ${cdir} - umask 0077 + SLEEP_TIME_AFTER_START=5 nohup java -Dproc_rangertagsync ${JAVA_OPTS} -Dlogdir="${RANGER_TAGSYNC_LOG_DIR}" -Dlog4j.configuration=file:/etc/ranger/tagsync/conf/log4j.properties -cp "${cp}" org.apache.ranger.tagsync.process.TagSynchronizer > ${RANGER_TAGSYNC_LOG_DIR}/tagsync.out 2>&1 & VALUE_OF_PID=$! http://git-wip-us.apache.org/repos/asf/ranger/blob/d0e5f24b/unixauthservice/scripts/ranger-usersync-services.sh ---------------------------------------------------------------------- diff --git a/unixauthservice/scripts/ranger-usersync-services.sh b/unixauthservice/scripts/ranger-usersync-services.sh index 89c4acd..028ad08 100644 --- a/unixauthservice/scripts/ranger-usersync-services.sh +++ b/unixauthservice/scripts/ranger-usersync-services.sh @@ -92,7 +92,7 @@ if [ "${action}" == "START" ]; then cp="${cdir}/dist/*:${cdir}/lib/*:${cdir}/conf:${RANGER_USERSYNC_HADOOP_CONF_DIR}/*" cd ${cdir} - umask 0077 + if [ -z "${logdir}" ]; then logdir=${cdir}/logs fi
