summaryrefslogtreecommitdiff
path: root/stopYACY.sh
diff options
context:
space:
mode:
authorallo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542>2006-02-06 16:18:28 +0000
committerallo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542>2006-02-06 16:18:28 +0000
commitda59e15f281d99d2d060fb0d9e3f39bd07ca7769 (patch)
tree591df231719bf8d9a62e5d75cd02f1d1c9f94212 /stopYACY.sh
parentfd7af851bf2520a00d94e5a502d503dc8f5544ec (diff)
timeout on hanging httpd
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1558 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'stopYACY.sh')
-rwxr-xr-xstopYACY.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/stopYACY.sh b/stopYACY.sh
index 0cdfc0e72..fb2d9ace6 100755
--- a/stopYACY.sh
+++ b/stopYACY.sh
@@ -5,7 +5,7 @@ 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 -t 1 --header "Authorization: realm=$pw" http://localhost:$port/Steering.html?shutdown=true -O /dev/null
+ wget -q -t 1 --timeout=5 --header "Authorization: realm=$pw" http://localhost:$port/Steering.html?shutdown=true -O /dev/null
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'"