Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
retrylimit for wget and better errormessage when neither wget nor java could be found.
allo512b3f9b948e
diff --git a/stopYACY.sh b/stopYACY.shindex 0c1ac9bc5..0cdfc0e72 100755--- a/stopYACY.sh+++ b/stopYACY.sh@@ -3,26 +3,26 @@ cd `dirname $0`if [ -x `which wget` ]then-port=`cat DATA/SETTINGS/httpProxy.conf |grep "^port="|sed "s/.*=//"`-pw=`cat DATA/SETTINGS/httpProxy.conf |grep "^adminAccountBase64MD5="|sed "s/.*=//"`-wget -q --header "Authorization: realm=$pw" http://localhost:$port/Steering.html?shutdown=true -O /dev/null+ port=`cat DATA/SETTINGS/httpProxy.conf |grep "^port="|sed "s/.*=//"`+ pw=`cat DATA/SETTINGS/httpProxy.conf |grep "^adminAccountBase64MD5="|sed "s/.*=//"`+ wget -q -t 1 --header "Authorization: realm=$pw" http://localhost:$port/Steering.html?shutdown=true -O /dev/nullecho "Please wait until the YaCy daemon process terminates"echo "You can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"elif [ -x `which java` ]then-# generating the proper classpath-CLASSPATH=""-for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done-for N in libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; done+ # generating the proper classpath+ CLASSPATH=""+ for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done+ for N in libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; done-java -classpath classes:htroot:$CLASSPATH yacy -shutdown+ java -classpath classes:htroot:$CLASSPATH yacy -shutdown-echo "Please wait until the YaCy daemon process terminates"-echo "You can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"+ echo "Please wait until the YaCy daemon process terminates"+ echo "You can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"else-echo "One of the following programs is not installed or not executable: wget, cat, sed or grep."-echo "YaCy could not be stopped. Please use your webbrowser to do so."+ echo "Neither wget nor java could be found."+ echo "visit http://localhost:8080/Steering.html?shutdown=true to stop YaCy or use ./killYACY.sh"fi