From b7bccbff1db342be7b1337e5bb662cb25c7b8604 Mon Sep 17 00:00:00 2001 From: allo Date: Sun, 11 Sep 2005 07:44:22 +0000 Subject: [PATCH] extract cmdline options from config (javastart_*) javastart_foo=Xmx512m will be -Xmx512m http://www.yacy-forum.de/viewtopic.php?p=9564 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@702 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- startYACY.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/startYACY.sh b/startYACY.sh index 70e6c0623..c569962d9 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -7,6 +7,12 @@ then else cd `dirname $0` + #get javastart args + java_args="" + for i in $(grep javastart DATA/SETTINGS/httpProxy.conf); + do i="${i#javastart_*=}";java_args=-$i" "$java_args; + done + # generating the proper classpath CLASSPATH="" for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done @@ -14,13 +20,13 @@ else if [ x$1 == x-d ] #debug then - java -classpath classes:$CLASSPATH yacy + java $java_args -classpath classes:$CLASSPATH yacy exit 0 elif [ x$1 == x-l ] #logging then - nohup java -classpath classes:htroot:$CLASSPATH yacy >> yacy.log & + nohup java $java_args -classpath classes:htroot:$CLASSPATH yacy >> yacy.log & else - nohup java -classpath classes:htroot:$CLASSPATH yacy > /dev/null & + nohup java $java_args -classpath classes:htroot:$CLASSPATH yacy > /dev/null & # nohup java -Xms160m -Xmx160m -classpath classes:htroot:$CLASSPATH yacy > /dev/null & fi echo "YaCy started as daemon process. View it's activity in DATA/LOG/yacy00.log"