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
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 Fulton mailto:[EMAIL PROTECTED] Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
Zope3-dev mailing list