[Zope-dev] zdaemon fix

Toby Dickenson tdickenson@geminidataloggers.com
Sat, 5 Oct 2002 17:01:18 +0100


On Saturday 05 Oct 2002 8:29 am, Guido van Rossum wrote:

> I am thinking of a fairly simple change to zdaemon: if it finds that
> it is continuously respawning the program more than 10 times in 2
> minutes, it assumes there is a fatal error, log a PANIC level message,
> and exit.  (

> (I took the criterion, but not the response from init(8).)

In this scenario init pauses for a few minutes, rather than aborting. I w=
ould=20
like an option to prevent zdaemon aborting, and I am surpised you dont wa=
nt=20
it as the default.

I think init uses a simple fixed pause... an exponential backoff would=20
probably be smarter (like how a disconnected ZEO ClientStorage tries to=20
reconnect to its server)