From b3f0d064447d968739e26db2c8b8c3517fa7e7ea Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 3 Sep 2010 23:08:43 +0000 Subject: fixed a problem with restarts in YaCy mac applications: the DATA directory path was not submitted when doing a restart. This solves the problem by: - storing the startup properties when yacy is started - using the properties in the restart-script again. this transports also the DATA directory location as parameter of the -gui option that is used when the Mac version of YaCy is started git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7102 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- startYACY.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'startYACY.sh') diff --git a/startYACY.sh b/startYACY.sh index e2e221b0c..ae22cf51d 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -95,8 +95,9 @@ for option in $options;do -t|--tail-log) TAILLOG=1 ;; - -g|--gui) + -gui) GUI=1 + isparameter=1 ;; esac #case option else #parameter @@ -179,7 +180,7 @@ CLASSPATH=".:htroot:$CLASSPATH" cmdline="$JAVA $JAVA_ARGS -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encoding=UTF-8 -classpath $CLASSPATH net.yacy.yacy"; if [ $GUI -eq 1 ] #gui then - cmdline="$cmdline -gui" + cmdline="$cmdline -gui $parameter" fi if [ $DEBUG -eq 1 ] #debug then -- cgit v1.2.3