X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=bin%2Firspy-update.sh;h=5cae91dcf4fa1a548f4bb6ecece53174a14c6b51;hp=3e95941a47ceab73b044f8eeb6efa55d6d6bced3;hb=d4c28cb5b1119781fe0d72c17aaa691ef977dc0c;hpb=4a0c60bbe4c323a5a0c9151367279608ef427e4a diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index 3e95941..5cae91d 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -12,6 +12,7 @@ home=/usr/local/src/git cd $home/irspy/bin || exit 2 logdir=../log lockfile=$logdir/irspy-update.lock +statusfile=$logdir/irspy-last-update.log # run a full update by default, use Quick for a fast update : ${irspy_test=Main} @@ -31,11 +32,12 @@ weekday=`date '+%w'` for i in 0 1 2 3 4 5 6 do logfile=$logdir/irspy-mod-$i.log.$weekday - YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -f'cql.allRecords=1 not zeerex.disabled = 1' -t $irspy_test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 + YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -f'cql.allRecords=1 not zeerex.disabled = 1' -t $irspy_test -r ../etc/dallas.rules -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 sleep 1 # catch ctr-c before compressing the log gzip -f $logfile done rm -f $lockfile +date > $statusfile