From: Thomas S. <tho...@ui...> - 2011-08-31 17:44:00
|
hi, trying to start 2 independend solr indexes by using 2 env files: $ cat tom_added/env.sh export JAVA_HOME=/usr/lib/jvm/java-6-sun/ export VUFIND_HOME=/usr/local/vufind export JETTY_CONSOLE=/tmp/jetty.log export JETTY_CONSOLE=/var/log/jetty-vufind.log export JETTY_PORT=8983 $ cat tom_added/env-import.sh export JAVA_HOME=/usr/lib/jvm/java-6-sun/ export VUFIND_HOME=/usr/local/vufind export JETTY_CONSOLE=/tmp/jetty-import.log export JETTY_CONSOLE=/var/log/jetty-vufind-import.log export JETTY_PORT=8984 export SOLR_HOME=/usr/local/vufind/solr-import export JETTY_PID=/tmp/jetty-vufind-import.pid i found out that my bash variable $JETTY_PID will be ignored when calling ./vufind.sh check and i think i found the reason here: if [ -f $JETTY_RUN/vufind.pid ] then echo "VuFind running pid="`cat $JETTY_RUN/vufind.pid` exit 0 fi exit 1 and would maybe replace it with something like: if [ -n "$JETTY_PID" ] then if [ -f $JETTY_PID ] then echo "VuFind running pid="`cat $JETTY_PID` exit 0 else echo "VuFind not running." exit 0 fi fi if [ -f $JETTY_RUN/vufind.pid ] then echo "VuFind running pid="`cat $JETTY_RUN/vufind.pid` exit 0 fi exit 1 at least this seems to work for my case... t. |