nALFS CVS snapshots?

Jeroen Coumans jeroen at linuxfromscratch.org
Thu Oct 23 10:04:03 PDT 2003


Hi Gerard Beekmans. You said the following on 10/23/03 18:42:
> On Thu, 2003-10-23 at 10:35, Jeroen Coumans wrote:
> 
>>And be careful for race conditions; the website is update twice a day 
>>(check fcron); be sure not to interfere with it (it has happened before).
> 
> 
> A simple lock file check will help to prevent that:
> 
> while [ -f /tmp/update-website-in-progress ]; do sleep 5; done
> 
> As long as that file exists, the website script is running. Sleep a few
> seconds and try again, until the file is gone.

And they are already implemented; completely forgot about it:

LOCKFILE="/tmp/update-website-in-progress"
CVSCLEANLOCK="/tmp/cvs_being_cleaned.lock"

while [ -f $LOCKFILE ]; do sleep 5; done

touch $LOCKFILE

while [ -f $CVSCLEANLOCK ]; do sleep 5; done



-- 
Jeroen Coumans (jeroen at linuxfromscratch.org)
FAQ and Website Maintainer
{faq,website}@linuxfromscratch.org




More information about the website mailing list