- Modified to make it usable. This way we don't have to use Ant to run LARM.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2002-09-14 18:51:49 +00:00
parent cc71858047
commit d6cc4d7342
1 changed files with 40 additions and 3 deletions

View File

@ -1,4 +1,41 @@
#!/bin/sh
rm -r logs
mkdir logs
java -server -Xmx400mb -classpath classes:libs/jakarta-oro-2.0.5.jar de.lanlab.larm.fetcher.FetcherMain -start http://your.server.here/ -restrictto http://[^/]*\.your\.server\.here.* -threads 15
#
# $Id$
#
BASE_DIR=./runtime
LOG_DIR=$BASE_DIR/logs
CACHE_DIR=$BASE_DIR/cachingqueue
CLASSPATH=build/classes:libs/jakarta-oro-2.0.5.jar:libs/HTTPClient.zip:/usr/local/jakarta-lucene/lucene.jar
SLEEP_TIME=2
if [ $# -lt 4 ]
then
echo "Usage: `basename $0` <start url> <score regex> <# threads> <max mem>" >&2
exit 1
fi
START_URL=$1
SCOPE_REGEX=$2
THREAD_COUNT=$3
MAX_MEM=$4
echo Removing $LOG_DIR...
sleep $SLEEP_TIME
rm -r $LOG_DIR
echo Removing $CACHE_DIR...
sleep $SLEEP_TIME
rm -r $CACHE_DIR
echo Creating $LOG_DIR
sleep $SLEEP_TIME
mkdir -p $LOG_DIR
echo Creating $CACHE_DIR
sleep $SLEEP_TIME
mkdir -p $CACHE_DIR
CMD="java -server -Xmx$MAX_MEM -classpath $CLASSPATH de.lanlab.larm.fetcher.FetcherMain -start $START_URL -restrictto $SCOPE_REGEX -threads $THREAD_COUNT"
echo Starting LARM with: $CMD
$CMD