[Twisted-Python] Capturing a web-server shutdown signal?
31 Jul
2004
31 Jul
'04
3:13 p.m.
When a Twisted web server is killed, I'd like to somehow get a signal from the server that its going down and clean up some objects (I.e., a PB Client instance -- need to log it out of the PB Server on shutdown) that I've persisted in the web server's registry. Has anyone done this before? Any suggestions besides perhaps usng the shutdown script to instantiate an HTTP client which fires a URL to the server which acts as a trigger to handle the registry cleanup? Thanks, Serg _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
7429
Age (days ago)
7429
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sergio Trejo