2005-04-07 21:19:42 +02:00
|
|
|
#!/bin/sh
|
|
|
|
cd `dirname $0`
|
2005-05-03 11:47:56 +02:00
|
|
|
|
2005-09-24 01:35:46 +02:00
|
|
|
if [ -x `which wget` ];
|
2005-09-21 22:42:57 +02:00
|
|
|
then
|
2005-09-21 22:08:40 +02:00
|
|
|
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
|
2005-09-21 22:42:57 +02:00
|
|
|
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
|
|
|
|
fi
|
2005-05-03 11:47:56 +02:00
|
|
|
|
2005-04-07 21:19:42 +02:00
|
|
|
echo "please wait until the YaCy daemon process terminates"
|
2005-09-21 22:08:40 +02:00
|
|
|
echo "you can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"
|