Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added checkalive script that can be called frequently to restart crashed peers automatically
Michael Christen7a5ff9b8088c
diff --git a/bin/checkalive.sh b/bin/checkalive.shnew file mode 100755index 000000000..870ac4e7a--- /dev/null+++ b/bin/checkalive.sh@@ -0,0 +1,23 @@+#!/bin/bash++# add in /etc/crontab+# 0 * * * * yacy cd /home/yacy/production/bin && ./checkalive.sh++RESULT=`wget --spider http://localhost:8090/Status.html 2>&1`+FLAG=0++for x in $RESULT; do+ if [ "$x" = '200' ]; then+ FLAG=1+ fi+done++if [ $FLAG -eq '0' ]; then+ cd ..+ timeout 30s ./stopYACY.sh+ ./killYACY.sh+ rm DATA/yacy.running+ ./startYACY.sh+fi++exit