[Twisted-Python] Help: how to run something at shutdown time
davidh at ilm.com
Mon Feb 6 16:50:24 EST 2006
As you might have guessed, I'm something of a twisted newbie here.
That seems perfect.
Thomas HERVE wrote:
> 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