New script to generate nginx.conf part

This commit is contained in:
nemunaire 2014-01-21 03:08:08 +01:00
commit 8d7394b833
7 changed files with 108 additions and 29 deletions

View file

@ -12,10 +12,12 @@ fi
touch ./logs/checks.log
tail -f ./logs/checks.log &
KP1=$!
TMPF=`mktemp`
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/test.sock -o ./out &
KP2=$!
while ! [ -f /tmp/stop ];
do
@ -23,6 +25,7 @@ do
if [ `ls submission | wc -l` -gt 1 ]
then
./clear_cache.sh top
./check.pl 2>> ./logs/checks.log >> "$TMPF"
else
@ -30,4 +33,6 @@ do
fi
done
kill -9 $KP1 $KP2
rm -rf "$TMPF"