Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
finally fix the init script. tested this time.
fuchsi3b8540198be8
diff --git a/addon/yacyInit.sh b/addon/yacyInit.shindex b5a7999c4..7364cfda9 100755--- a/addon/yacyInit.sh+++ b/addon/yacyInit.sh@@ -15,8 +15,11 @@ USER=yacy# databases.SHUTDOWN_TIMEOUT=20+# Don't run if not installed+test -f $DAEMON_DIR/startYACY.sh || exit 0# generating the proper classpath+cd $DAEMON_DIRCLASSPATH=""for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; donefor N in libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; done@@ -25,9 +28,6 @@ NAME="yacy"DESC="YaCy HTTP Proxy"PID_FILE=/var/run/$NAME.pid-# Don't run if not installed-test -f $DAEMON || exit 0-JAVA=$(which java)if [ -f $PID_FILE ]; then@@ -44,7 +44,7 @@ case "$1" inecho -n "Starting $DESC: "start-stop-daemon --start --background --make-pidfile --chuid $USER\--pidfile $PID_FILE --chdir $DAEMON_DIR --startas $JAVA\- -- -classpath $CLASSPATH yacy $DAEMON_DIR+ -- -classpath $CLASSPATH yacy $DAEMON_DIR > yacy.logecho "$NAME.";;@@ -54,16 +54,15 @@ case "$1" incd $DAEMON_DIR./stopYACY.shtimeout=$SHUTDOWN_TIMEOUT- while [ -n "$pidno" ]- do- let timeout=$timeout-1- if [ $timeout -eq 0 ]; then- start-stop-daemon --stop --pidfile $PID_FILE --oknodo- break- fi- echo -n "."- sleep 1- pidno=$( ps ax | grep $pid | awk '{ print $1 }' | grep $pid )+ while [ -n "$pidno" ]; do+ let timeout=$timeout-1+ if [ $timeout -eq 0 ]; then+ start-stop-daemon --stop --pidfile $PID_FILE --oknodo --verbose+ break+ fi+ echo -n "."+ sleep 1+ pidno=$( ps ax | grep $pid | awk '{ print $1 }' | grep $pid )doneecho "$NAME."cd -