Created
July 11, 2012 15:36
-
-
Save ept/3091205 to your computer and use it in GitHub Desktop.
Minimal shell script for launching Zookeeper
This file contains 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
#!/bin/bash -e | |
export JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64" | |
export ZOOBINDIR="/home/zookeeper/current/bin" | |
export JMXFLAGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false" | |
export ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain" | |
export ZOOCFGDIR="/home/zookeeper/config" | |
export ZOO_LOG_DIR="/home/zookeeper/log" | |
export ZOO_LOG4J_PROP="INFO,ROLLINGFILE" | |
. $ZOOBINDIR/zkEnv.sh | |
exec $JAVA_HOME/bin/java "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \ | |
-cp "$CLASSPATH" $JMXFLAGS $JVMFLAGS $ZOOMAIN "$ZOOCFG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment