1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-17 08:26:08 -04:00

fixes for wrong port number in shell scripts

This commit is contained in:
Michael Peter Christen
2012-05-29 13:08:27 +02:00
parent 1ab3de0885
commit 2823e33531
2 changed files with 4 additions and 2 deletions

@ -3,7 +3,8 @@
# add in /etc/crontab
# 0 * * * * yacy cd /home/yacy/production/bin && ./checkalive.sh
RESULT=`wget -t 1 --spider http://localhost:8090/Status.html 2>&1`
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
RESULT=`wget -t 1 --spider http://localhost:$port/Status.html 2>&1`
FLAG=0
for x in $RESULT; do

@ -1,4 +1,5 @@
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
while [ 1 = 1 ]
do
curl "http://localhost:8090/NetworkPicture.png?width=768&height=576&bgcolor=FFFFFF" > /dev/null
curl "http://localhost:$port/NetworkPicture.png?width=768&height=576&bgcolor=FFFFFF" > /dev/null
done