-if [ "$1" = "start" ]; then
- if [ -f "${PROG}.pid" ] ; then
- echo "Pid file ${DIR}/${PROG}.pid exists. Already running?"
+if [ "$BOOTSTRAP_CONF" != "" ] ; then
+ BOOTSTRAP_OPT="-Dbootstrap_confdir=$BOOTSTRAP_CONF"
+fi
+if [ "$PORT" == "" ] ; then
+ echo Port missing
+
+fi
+if [ "$ZKHOSTS" == "" ] ; then
+ echo ZKHOSTS missing
+fi
+if [ "$SHARDS" == "" ] ; then
+ echo SHARDS missing
+fi
+if [ "$ZOOKEEPER" == "yes" ] ; then
+ ZKRUN="-DzkRun -DnumShards=${SHARDS}"
+fi
+OPTIONS=" -Djetty.port=$PORT ${BOOTSTRAP_OPT} -Dcollection.configName=$NAME ${ZKRUN} -DzkHost=${ZKHOSTS} "
+if [ "$1" == "start" ]; then
+ if [ -f "${PID_FILE}" ] ; then
+ echo "pid file ${PID_FILE} exists. Already running?"