summaryrefslogtreecommitdiff
path: root/startYACY.sh
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-09-03 23:08:43 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-09-03 23:08:43 +0000
commitb3f0d064447d968739e26db2c8b8c3517fa7e7ea (patch)
tree467807b2b07264ebddef55c144a82ffb79cbf71e /startYACY.sh
parentd4e4967e199cf333f20a8b788907468b83b7692f (diff)
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
Diffstat (limited to 'startYACY.sh')
-rwxr-xr-xstartYACY.sh5
1 files changed, 3 insertions, 2 deletions
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