Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 413 Bytes
#!/bin/sh
[ -z $CL_BASEDIR ] && CL_BASEDIR=`dirname "$0"`
cd $CL_BASEDIR/..
JAVA_OPTS="-server -Xmx1g -XX:OnOutOfMemoryError=bin/kill_ppid"
CLASS=com.github.rnewson.couchdb.lucene.Main
CLASSPATH="conf"
for JAR in `ls lib/*.jar`
do
CLASSPATH="$CLASSPATH:$JAR"
done
if [ -z $PIDFILE ]; then
exec java $JAVA_OPTS -cp $CLASSPATH $CLASS
else
java $JAVA_OPTS -cp $CLASSPATH $CLASS &
echo $! > $PIDFILE
fi
Jump to Line
Something went wrong with that request. Please try again.