In prod, don't display synchro and generation logs
This commit is contained in:
parent
c7335fdadb
commit
7cdd53a0d7
@ -22,18 +22,18 @@ KP1=$!
|
|||||||
|
|
||||||
TMPF=`mktemp`
|
TMPF=`mktemp`
|
||||||
|
|
||||||
tail -f "$TMPF" | ./gen_site.pl -d -T /dev/shm -s /tmp/scheduler.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
|
tail -f "$TMPF" | ./gen_site.pl -d -T /dev/shm -s /tmp/scheduler.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS >> ./logs/generation.log &
|
||||||
KP2=$!
|
KP2=$!
|
||||||
|
|
||||||
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo; kill $$" INT TERM
|
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo; kill $$" INT TERM
|
||||||
|
|
||||||
while ! [ -f /tmp/stop ];
|
while ! [ -f /tmp/stop ];
|
||||||
do
|
do
|
||||||
./synchro.sh delete
|
./synchro.sh delete >> ./logs/synchro.log 2>&1
|
||||||
|
|
||||||
if [ `ls submission | wc -l` -gt 1 ]
|
if [ `ls submission | wc -l` -gt 1 ]
|
||||||
then
|
then
|
||||||
./clear_cache.sh top
|
./clear_cache.sh top >> ./logs/clear_cache.log
|
||||||
./check.pl 2>> ./logs/checks.log >> "$TMPF"
|
./check.pl 2>> ./logs/checks.log >> "$TMPF"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user