Created
April 29, 2019 16:34
-
-
Save dasl-/b418959f3138a0953cfb0e428a498d85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 2b540cc3fd29603f2cd9109dc709253c5a1af705 | |
Author: Adam Saponara <[email protected]> | |
Date: Wed Apr 3 16:20:12 2019 -0400 | |
Respect ZK_JAVA_OPTS env in zksrv.sh | |
Signed-off-by: Adam Saponara <[email protected]> | |
diff --git a/go/vt/zkctl/zksrv.sh b/go/vt/zkctl/zksrv.sh | |
index 62172c5d2..aada9b9b8 100755 | |
--- a/go/vt/zkctl/zksrv.sh | |
+++ b/go/vt/zkctl/zksrv.sh | |
@@ -20,7 +20,7 @@ | |
logdir="$1" | |
config="$2" | |
pidfile="$3" | |
- | |
+zk_java_opts=${ZK_JAVA_OPTS:-} | |
zk_ver=${ZK_VERSION:-3.4.14} | |
classpath="$VTROOT/dist/vt-zookeeper-$zk_ver/lib/zookeeper-$zk_ver-fatjar.jar:/usr/local/lib/zookeeper-$zk_ver-fatjar.jar:/usr/share/java/zookeeper-$zk_ver.jar" | |
@@ -53,7 +53,7 @@ else | |
fi | |
-cmd="$java -DZOO_LOG_DIR=$logdir -cp $classpath org.apache.zookeeper.server.quorum.QuorumPeerMain $config" | |
+cmd="$java -DZOO_LOG_DIR=$logdir $zk_java_opts -cp $classpath org.apache.zookeeper.server.quorum.QuorumPeerMain $config" | |
log "INFO starting $cmd" | |
$cmd < /dev/null &> /dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment