5 # run irspy with a smaller set of records in a loop to avoid out-of-memory
8 home=/usr/local/src/git
9 cd $home/irspy/bin || exit 2
11 lockfile=../tmp/irspy-update.lock
14 if [ -f $lockfile ]; then
16 if kill -0 $pid 2>/dev/null; then
17 echo "This script is already running with pid: $pid"
21 echo $$ > $lockfile || exit 2
24 for i in 0 1 2 3 4 5 6
26 logfile=$logdir/irspy-mod-$i.log.$weekday
27 YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t $irspy_test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1