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

Thomas HERVE therve at free.fr
Mon Feb 6 16:43:59 EST 2006

Quoting David Hirschfield <davidh at ilm.com>:

> I don't see any callWhenStopped() or something to that effect...so is 
> there a way to call specific methods when shutdown happens?

Yes : reactor.addSystemEventTrigger('before', 'shutdown', func, args) 
callWhenRunning calls this method if reactor is not running).


More information about the Twisted-Python mailing list