-----BEGIN PGP SIGNED MESSAGE-----
Michael Merickel wrote:
> WSGI is a pure request-level protocol, it does not handle or care how
> it is served. As a result, a WSGI app (such as Pyramid) has no
> concept of when the service begins or ends.
As Zope veteran, I know :-) I am asking about the backend, not the WSGI
> The closest you'll get to this is a startup hook such as your main()
> or ApplicationCreated for tracking the start.
ACK for the startup
> The other option is to hope that your server has hooks that can be
> used to track this. Finally, process state can be monitored
> externally via supervisor or some other process monitor.
I am still missing for the shutdown phase. Supervisord...is an option
but I want to have something in my app. I tried using an atexit handler
but it is never executed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----