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. The closest you'll get to this is a startup
hook such as your main() or ApplicationCreated for tracking the start. 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.


On Fri, Jan 25, 2013 at 1:11 AM, Andreas Jung <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> any chance to capture the startup and shutdown of a Pyramid service?
> I want to capture start/stop of Pyramid as event in our central
> monitoring service.
>
> Andreas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJRAjAQAAoJEADcfz7u4AZjWZoLwK/2BL87GEnxLvf3o4o9lCjc
> u1TL1koYaTKR9fA1NAKh/jaRM83s6d7qrFXhQVikG1TbSk0a0ZMoyzVPDE3GXkZn
> SEA1WAtHa9qRvHg0lDX4VFT/uDY2nCS6DotLnWVFY38ezI6RMbI5objqtcSs6wbX
> jFuIp26hXD2z6AGPRbwq5J06jEkfkBsu1aCtgRNsdmfgLY084tSzCh9duwbV6eD6
> BgJzTnzHLUfGreqt0Nibxuj/Nqa7S6ko8s6fxqwPnN0Fy3d2Yej3Z/NxjCOEwKwb
> z4qww7tYDUdFNDN0QOXK+EDFT0akJlOV6EUdYs0eHWBsjaVZz/lUucZTOv9PcwMg
> kKEHBzNgLo6bH8OcIaVFCngmARJeO4sM8A6mL2VmYbYD//+0dnVaMm3v1++q6BRL
> fX87E+tzW2ZIhtxzJ4sdBlF+y4EkGIvs8PCOegO0EdlOXU5V/59wPXrizDGyUFK2
> xmQ45YwFkS/jR1tYWkwl/we8LBLMsXk=
> =rD7D
> -----END PGP SIGNATURE-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to