Re: two sitecopys at once: use lockfiles
Adam Byrtek <[email protected]> Mon, 23 Oct 2006 22:52:38 +0200
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 20, 2006 at 10:30:05AM +1200, Volker Kuhlmann wrote: > The biggest trouble with lockfiles is to find some heuristics for > deciding when they're stale. Imagine you're left with an existing > lockfile and no sitecopy is running (eg the power went off) - you're > never updating your site again. Ok you could print a msg asking the use= r There are solutions. For example, Emacs includes its PID in the lockfile name, this way when the process dies and the next instance sees the lock, it assumes the lock is stale (because process with a given PID doesn't exist) and grabs it. Regards, Adam --=20 Adam Byrtek / Alpha ,,Ka=BFdy idea=B3 w ciele jest trywialny'' -- prawdy algebraiczne _______________________________________________ sitecopy maillist - [email protected] http://dav.lyra.org/mailman/listinfo/sitecopy