3 OPTIONS="-Djetty.port=8983 -DzkHost=opencontent-solr.index:9983"
4 NAME="indexdata-solr-zookeeper"
5 PID_FILE=/var/run/${NAME}.pid
6 LOG_FILE=/var/log/${NAME}.log
7 if [ -f "options" ]; then
10 echo "No options file. Using defaults: $OPTIONS"
13 if [ "$1" == "start" ]; then
14 if [ -f "${PID_FILE}" ] ; then
15 echo "pid file ${PID_FILE} exists. Already running?"
18 java $OPTIONS -jar start.jar > $LOG_FILE &
20 elif [ "$1" == "stop" ]; then
21 if [ -x "${PID_FILE}" ] ; then
22 kill `echo ${PID_FILE}`
26 echo "$0 [start|stop|status]"