[NCLUG] CVS Auto update of web pages?
Matthew Wilcox
willy at debian.org
Wed Apr 3 12:43:57 MST 2002
On Wed, Apr 03, 2002 at 12:05:07PM -0700, Sean Reifschneider wrote:
> When the NCLUG web-pages were being set up in CVS, Willie was talking about
That's "willy", dude :-)
> a mechanism for causing the final pages to be updated immediately when a
> commit was done. However, this was never implemented, so right now it's
> just doing a checkout every 15 minutes or something...
>
> I see that there's a "CVS/Checkin.prog", which gets called when a "cvs
> commit" is done. However, this apparently is run while there's still a
> lock held, so you can't just do a "cvs update" and be done with it.
My implementation sent an email to the webserver user which upon receipt
took a local lock, ran cvs up, ran make, slept for 180 seconds and
released the lock.
The delay was to ensure that you couldn't DoS the CVS server this way.
--
Revolutions do not require corporate support.
More information about the NCLUG
mailing list