Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
check for wget
alloba145efb4654
diff --git a/stopYACY.sh b/stopYACY.shindex f91ebce34..b68783274 100755--- a/stopYACY.sh+++ b/stopYACY.sh@@ -1,16 +1,21 @@#!/bin/shcd `dirname $0`-## generating the proper classpath-#CLASSPATH=""-#for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done-#for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done--#java -classpath classes:htroot:$CLASSPATH yacy -shutdown-+which wget >/dev/null+if [ 0 == $? ];+thenport=`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+else++# generating the proper classpath+CLASSPATH=""+for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done+for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done++java -classpath classes:htroot:$CLASSPATH yacy -shutdown+fiecho "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'"