nALFS CVS snapshots?

Gerard Beekmans gerard at linuxfromscratch.org
Thu Oct 23 09:42:31 PDT 2003


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.

-- 
Gerard Beekmans
http://www.linuxfromscratch.org
http://www.beekmansworld.com

/* Linux Consultant --- OSDN / DevChannel *
 * Technical Writer --- CheapBytes        */

/* If Linux doesn't have the solution, you have the wrong problem */





More information about the website mailing list