[Zope3-dev] Is there an alternative to zdaemon?

Jim Fulton jim at zope.com
Fri Dec 22 17:40:56 EST 2006


Sascha Ottolski wrote:
> Am Freitag, 22. Dezember 2006 23:04 schrieb Jim Fulton:
>> An abnormal exit is an exit due to some error, such as a segmentation
>> fault or running out of memory.
>>
>>  > in the sense, how would the
>>> supervisor know thats it's abnormal?
>> It can check the exit status.  Normal shutdowns typycally exit with
>> status 0.  zdaemon (and supervisor2, which was obviously inspired by
>> zdaemon) has an exit-codes option to configure which exit codes
>> are normal.  If the supervisor exists with one of these exit codes,
>> it should not be restarted.
> 
> i see. however, i guess the idea of a supervisor is just for such cases: to 
> take care to restart a server that broke. there's "svc -o" to run a service 
> only "once", which comes handy if one is not sure if the server will survive 
> a start.

Yes

> what i think to make more sense would be that the supervisor could 
> detect if a server is restarted too frequently. in my experience, thats more 
> often a situation that needs special attention.

Yes, that's a case that zdaemon and supervistor2 handle.

Yu also want an application to be able to exit normally
without being restarted.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list