[Twisted-Python] how to stop a service

Manlio Perillo manlio_perillo at libero.it
Sat Jun 10 13:53:47 EDT 2006


Manlio Perillo ha scritto:
> Just to be sure.
> 
> I have written a small application that do some computation, than stop.
> 
> I have subclassed twisted.application.service.Service, because the
> application do some persistence, and this seems to be the best solution (?).
> 
> To stop the application/service I just have to call reactor.stop, "as
> usual"?
> 

Just another question: when running application with twistd, how can I
return error codes from my application to operating system?

That is: where (and how) can I safely call os.exit?



Thanks and regards  Manlio Perillo




More information about the Twisted-Python mailing list