Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
change dir to the yacy base directory before starting it making sure relative path specifications work properly. see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=405
fuchsi905e7e60f532
diff --git a/addon/yacyInit.sh b/addon/yacyInit.shindex 7795086d0..b5a7999c4 100755--- a/addon/yacyInit.sh+++ b/addon/yacyInit.sh@@ -4,18 +4,23 @@## Provided by Matthias Kempka, 26.12.2004-PATH=/sbin:/bin:/usr/sbin:/usr/local/bin:/usr/bin #ensure java is in the path-DAEMON_DIR=/opt/yacy #installation directory-USER=yacy #set to the user whose rights the proxy will gain+# ensure java is in the path+PATH=/sbin:/bin:/usr/sbin:/usr/local/bin:/usr/bin+# installation directory+DAEMON_DIR=/opt/yacy+# set to the user whose rights the proxy will gain+USER=yacy+# Set this to the maximum number of seconds the script should try to shutdown+# yacy. You might want to increase this on slower peers or for bigger+# databases.+SHUTDOWN_TIMEOUT=20# generating the proper classpathCLASSPATH=""-for N in $DAEMON_DIR/lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done-for N in $DAEMON_DIR/libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; done+for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done+for N in libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; doneCLASSPATH="classes:.:htroot:$CLASSPATH"-#CLASSPATH=$DAEMON_DIR/classes-DAEMON=$DAEMON_DIR/startYACY.shNAME="yacy"DESC="YaCy HTTP Proxy"PID_FILE=/var/run/$NAME.pid@@ -38,7 +43,7 @@ case "$1" infiecho -n "Starting $DESC: "start-stop-daemon --start --background --make-pidfile --chuid $USER\- --pidfile $PID_FILE --startas $JAVA\+ --pidfile $PID_FILE --chdir $DAEMON_DIR --startas $JAVA\-- -classpath $CLASSPATH yacy $DAEMON_DIRecho "$NAME.";;@@ -48,7 +53,7 @@ case "$1" inecho -n "Stopping $DESC: "cd $DAEMON_DIR./stopYACY.sh- timeout=20+ timeout=$SHUTDOWN_TIMEOUTwhile [ -n "$pidno" ]dolet timeout=$timeout-1