[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) 
(actually
callWhenRunning calls this method if reactor is not running).

-- 
Thomas





More information about the Twisted-Python mailing list