mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
using wget instead of java for shutdown
-better performance -more native git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@765 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
1 parent
ef85fce661
commit
211a72ec6b
1 file changed
+11
-6
+11
-6
@@ -1,11 +1,16 @@
|
||||
#!/bin/sh
|
||||
cd `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
|
||||
## 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
|
||||
|
||||
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
|
||||
|
||||
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 "you can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"
|
||||
Reference in new issue
Block a user