Don't use a lockfile, the script will be called with lockf -t0 instead

to avoid problems with stale lockfiles after reboots.
This commit is contained in:
Kris Kennaway 2005-12-11 04:35:04 +00:00
parent ba996790a4
commit 1ace35e972
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150850

View File

@ -11,14 +11,9 @@ of=/usr/local/www/data/errorlogs/.${arch}-${branch}-failure.html
cd ${pb}/${arch}/${branch}
find $of .failure.html.lock -mmin +60 -delete 2>/dev/null
if [ -f $of -o -f .failure.html.lock ]; then exit; fi
if [ -e .newfailure.stamp -a $(echo $(find . -maxdepth 1 -newer .newfailure.stamp -name newfailure 2>&1 /dev/null | wc -l)) = "0" ]; then exit; fi
touch .newfailure.stamp
touch .failure.html.lock
newfailure=${pb}/${arch}/${branch}/newfailure
num=$(wc -l ${newfailure} | awk '{print $1}')
@ -72,5 +67,4 @@ while read dir name ver date last count; do
echo "</tr>" >> $of
done < newfailure
footer ""
rm .failure.html.lock
mv -f $of /usr/local/www/data/errorlogs/${arch}-${branch}-failure.html