IRC Chat with Itamar about utilizing Twisted Services
itamar the reactor tells root service to shutdown
itamar which tells its child services to shutdown
itamar etc.
itamar and the reactor waits until root service tells it its ok
bkirsch can you register services at any time
itamar and root service waits until its children tell its ok, etc.
itamar yep
bkirsch ok let me take a look at this and get back to you
itamar read the code in twisted.application.service
itamar it's quite simple
bkirsch sounds like I need to try the services approach
bkirsch I will
bkirsch thanks
itamar and once you have a root service, you just do
itamar reactor.addSystemEventTrigger('before', 'shutdown', rootService.stopService)
itamar and before reactor.run() you do rootService.startService()
--
BrianKirsch - 27 May 2004