summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2012-06-24 10:57:18 +0200
committerMichael Peter Christen <mc@yacy.net>2012-06-24 10:57:18 +0200
commit2589158f44e8953dd7824876490c8d04fcfee749 (patch)
treebafb28722a644269d3f1ea6680f2c9893830e56e /bin
parent7b53be141f1bf699c97123373db7c376204856e5 (diff)
changed recommended line in /etc/crontab for high-availability
Diffstat (limited to 'bin')
-rwxr-xr-xbin/checkalive.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/checkalive.sh b/bin/checkalive.sh
index 56d836c00..91c498af5 100755
--- a/bin/checkalive.sh
+++ b/bin/checkalive.sh
@@ -1,7 +1,9 @@
#!/bin/bash
-# add in /etc/crontab
-# 0 * * * * yacy cd /home/yacy/production/bin && ./checkalive.sh
+# for a production environment with high-availability requirement,
+# (and if you are using the debian version of yacy)
+# add the following line in /etc/crontab
+# 0 * * * * yacy cd /usr/share/yacy/bin && ./checkalive.sh
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
RESULT=`wget -t 1 --spider http://localhost:$port/Status.html 2>&1`