Skip to content
Browse files

Allow for user parameters to be passed to the server on startup based…

… on ZKCONF_START_ZKOPTS env variable
  • Loading branch information...
1 parent 1518eeb commit 4d287099ce414157f7ea67824e1c527cda4cb158 @phunt committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 start.tmpl
View
2 start.tmpl
@@ -2,7 +2,7 @@
#for $sid, $servername, $clientport, $port1, $port2 in $serverlist
if [ ! -f ./$servername:$clientport/zookeeper_server.pid ] ; then
- java -cp ./*:. org.apache.zookeeper.server.quorum.QuorumPeerMain ./$servername:$clientport/zoo.cfg > ./$servername:$clientport/zoo.log 2>&1 &
+ java \$ZKCONF_START_ZKOPTS -cp ./*:. org.apache.zookeeper.server.quorum.QuorumPeerMain ./$servername:$clientport/zoo.cfg > ./$servername:$clientport/zoo.log 2>&1 &
echo -n $! > ./$servername:$clientport/zookeeper_server.pid
else
PID=`cat ./$servername:$clientport/zookeeper_server.pid`

0 comments on commit 4d28709

Please sign in to comment.
Something went wrong with that request. Please try again.