Repository: ranger
Updated Branches:
  refs/heads/master 2e193e124 -> 208acf8ec


RANGER-1627: Tagsync should also be able to support pid file name customization 
like admin and usersync

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


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

Branch: refs/heads/master
Commit: 208acf8eca45152e99da200e21847e01cab59604
Parents: 2e193e1
Author: Yujie Li <rydge...@gmail.com>
Authored: Fri Jun 2 11:12:23 2017 -0700
Committer: Colm O hEigeartaigh <cohei...@apache.org>
Committed: Tue Jun 6 09:50:43 2017 +0100

----------------------------------------------------------------------
 tagsync/scripts/ranger-tagsync-services.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/208acf8e/tagsync/scripts/ranger-tagsync-services.sh
----------------------------------------------------------------------
diff --git a/tagsync/scripts/ranger-tagsync-services.sh 
b/tagsync/scripts/ranger-tagsync-services.sh
index 9a72316..9b21a8f 100755
--- a/tagsync/scripts/ranger-tagsync-services.sh
+++ b/tagsync/scripts/ranger-tagsync-services.sh
@@ -36,7 +36,14 @@ done
 if [ -z "${TAGSYNC_PID_DIR_PATH}" ]; then
         TAGSYNC_PID_DIR_PATH=/var/run/ranger
 fi
-pidf=${TAGSYNC_PID_DIR_PATH}/tagsync.pid
+
+if [ -z "${TAGSYNC_PID_NAME}" ]
+then
+        TAGSYNC_PID_NAME=tagsync.pid
+fi
+
+pidf=${TAGSYNC_PID_DIR_PATH}/${TAGSYNC_PID_NAME}
+
 if [ -z "${UNIX_TAGSYNC_USER}" ]; then
         UNIX_TAGSYNC_USER=ranger
 fi

Reply via email to