[Twisted-Python] How to exit a twistd program with a status code ?

2010-09-23 Thread David Cournapeau
Hi, I have a program run through twistd, and would like to exit with a non zero status code on some error. I have a callback which stops the reactor and then sys.exit(some_value), but twistd still seems to catch the SystemExit exception after calling for reactor.stop(): Unhandled error in Deferre

Re: [Twisted-Python] Graceful/Hitless restart

2010-09-23 Thread ruslan usifov
I know, i have simply hope that anybody solved a similar problem and could share source codes :-))) This is application-specific behavior that you'll have to implement > yourself. > > Jean-Paul > > ___ > Twisted-Python mailing list > Twisted-Python@twis

Re: [Twisted-Python] Graceful/Hitless restart

2010-09-23 Thread exarkun
On 07:23 pm, ruslan.usi...@gmail.com wrote: >Hello > >First of all sorry for my bad english > >I don't think that this tikeC5 suit fro me:-( > >When i said Graceful i mean net behaviour: > >1). Server doesn't break already connected clients. Wait while they >all >ends and only afte then dies >2).

Re: [Twisted-Python] Graceful/Hitless restart

2010-09-23 Thread ruslan usifov
Hello First of all sorry for my bad english I don't think that this tikeе suit fro me:-( When i said Graceful i mean net behaviour: 1). Server doesn't break already connected clients. Wait while they all ends and only afte then dies 2). Respawn new workers with new reread config, which will se