summaryrefslogtreecommitdiff
path: root/stopYACY.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stopYACY.sh')
-rwxr-xr-xstopYACY.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/stopYACY.sh b/stopYACY.sh
index b46029ab2..ecedaa5ee 100755
--- a/stopYACY.sh
+++ b/stopYACY.sh
@@ -1,12 +1,16 @@
#!/bin/sh
cd `dirname $0`
-if [ -x `which wget` ];
+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
-else
+
+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'"
+
+elif [ -x `which java` ]
# generating the proper classpath
CLASSPATH=""
@@ -14,7 +18,11 @@ 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
-fi
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."
+fi