Author: low012
Date: 2008-03-01 13:08:24 +0100 (Sat, 01 Mar 2008)
New Revision: 4521
Modified:
trunk/startYACY.sh
Log:
*) *NIX start script displays the right port number now instead of always
displaying 8080 no matter what the port is set to
Modified: trunk/startYACY.sh
===================================================================
--- trunk/startYACY.sh 2008-03-01 09:44:33 UTC (rev 4520)
+++ trunk/startYACY.sh 2008-03-01 12:08:24 UTC (rev 4521)
@@ -91,6 +91,8 @@
if [ ! -z "$j" ];then
if [ -n $j ]; then JAVA="nice -n $j $JAVA"; fi;
fi
+
+ PORT="`grep ^port= DATA/SETTINGS/httpProxy.conf | sed 's/^[^=]*=//'`";
# for i in `grep javastart DATA/SETTINGS/httpProxy.conf`;do
# i="${i#javastart_*=}";
@@ -98,6 +100,7 @@
# done
else
JAVA_ARGS="-Xmx120m -Xms120m $JAVA_ARGS";
+ PORT="8080"
fi
#echo "JAVA_ARGS: $JAVA_ARGS"
#echo "JAVA: $JAVA"
@@ -127,7 +130,7 @@
echo "** STOP YaCy: execute stopYACY.sh and wait some seconds
**"
echo "** GET HELP for YaCy: see www.yacy-websearch.net/wiki and
forum.yacy.de **"
echo
"*******************************************************************************"
- echo " >> YaCy started as daemon process. Administration at
http://localhost:8080 << "
+ echo " >> YaCy started as daemon process. Administration at
http://localhost:$PORT << "
eval $cmdline
if [ "$TAILLOG" -eq "1" -a ! "$DEBUG" -eq "1" ];then
tail -f DATA/LOG/yacy00.log
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn