1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00
stackdump/start_solr.sh
Samuel Lai 429aa69660 Now uses Python if it can be found.
Jython was too slow, and took too much memory to be reliable, particularly for large data sets.
2011-09-14 22:35:56 +10:00

19 lines
344 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=`dirname $0`
JAVA_CMD=java
if [ -e "$SCRIPT_DIR/JAVA_CMD" ]
then
JAVA_CMD=`cat $SCRIPT_DIR/JAVA_CMD`
fi
if [ -z "`which $JAVA_CMD 2>/dev/null`" ]
then
echo "Java not found. Try specifying path in a file named JAVA_CMD in the script dir."
exit 1
fi
cd $SCRIPT_DIR/java/solr/server
$JAVA_CMD -jar start.jar