-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Noyes wrote:
> On Wed, 2006-03-29 at 16:29, Mike Noyes wrote:
>> The easiest one I've seen so far is here:
>> 
>> http://moongroup.com/pipermail/shell.scripting/2005-February/009396.html
> 
> Charles,
> Ugh! They went on for quite a while on that thread. I'm not sure what
> discussed method was finally used..
> 
> http://moongroup.com/pipermail/shell.scripting/2005-February/thread.html#9396

The reason they're not just using the -l switch to lockfile is the
person who started the thread is wanting to do something different in
the script if a stale lockfile is found:
http://moongroup.com/pipermail/shell.scripting/2005-February/009410.html

If you're concerned about this, we'd need to jump through the same hoops
they're mentioning in the thread.  Personally, I think one of the two
"easy" options would work for us:

1) No automatic stale lockfile removal.  If anything goes wrong with the
script and a lockfile is left on the system, an administrator will have
to login, check things out, and clear the lockfile.

2) Lockfile automatically removed after some (long compared to document
creation) time.  This would handle the cases where the script died for
some reason and didn't remove the lockfile, but could potentially cause
problems if a previous script is still running for whatever reason.

I'd probably suggest going with #1 for now...the worst case is documents
don't get automatically generated for a while if an admin doesn't look
at things immediately.  I mentioned the -l switch to lockfile since I
wasn't sure if your removal of the lockfile when trying to grab it
failed was unintentional, or an attempt at forcibly grabbing it.

- --
Charles Steinkuehler
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEK9HvLywbqEHdNFwRApecAJsH+W6VB1pyGru3dccS0KQlaqTeEQCg9ML1
/zoeA1HitqLYetHhzW3Wn3M=
=1agv
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to