r1 - 27 May 2004 - 16:39:43 - BrianKirschYou are here: OSAF >  Projects Web  >  DevelopmentHome > ServicesWorkingGroup > EmailService > TwistedHome > ServiceSetup

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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.