[Twisted-Python] Help: how to run something at shutdown time

David Hirschfield davidh at ilm.com
Mon Feb 6 14:04:49 MST 2006


I'm running an xmlrpc server using twisted xmlrpc. I use 
reactor.callWhenRunning() to do some setup when the server is started, 
but I need to also do some special shutdown steps when the server is 
stopped.

I don't see any callWhenStopped() or something to that effect...so is 
there a way to call specific methods when shutdown happens?
Any help is appreciated,
-David

-- 
Presenting:
mediocre nebula.





More information about the Twisted-Python mailing list