[Twisted-Python] how to stop a service

Manlio Perillo manlio_perillo at libero.it
Sat Jun 10 13:01:55 MDT 2006


Jean-Paul Calderone ha scritto:
> [...]
>>
>> 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?
>>
> 
> There's no support for this yet.
> 

What about storing the return code in the application instance and call
os.exit(application.retcode) in an after shutdown system event?



Thanks and regards  Manlio Perillo




More information about the Twisted-Python mailing list