mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
changed recommended line in /etc/crontab for high-availability
This commit is contained in:
parent
7b53be141f
commit
2589158f44
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# add in /etc/crontab
|
# for a production environment with high-availability requirement,
|
||||||
# 0 * * * * yacy cd /home/yacy/production/bin && ./checkalive.sh
|
# (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)
|
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
|
||||||
RESULT=`wget -t 1 --spider http://localhost:$port/Status.html 2>&1`
|
RESULT=`wget -t 1 --spider http://localhost:$port/Status.html 2>&1`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user