[Twisted-Python] Using service.Application

Your new version isn't actually starting up any of your services. Two ways to address this: use twisted.internet.app.startApplication and twisted.internet.app.runReactorWithLogging (these are what "twistd" calls internally) instead of reactor.run, or get rid of the __name__ check and the reactor.run() call, and use "twistd -y <your file>" to run the server.
Jp
Thanks for the suggestions Jp (I assume you meant twisted.application.app, not twisted.internet.app). I don't use twistd at present because I subclass Logfile to limit the max number of rotating log files and I not aware of how I can do that with twistd. regards, Richard Townsend

On Mon, Dec 15, 2003 at 02:01:44PM -0000, Richard.Townsend@edl.uk.eds.com wrote:
Your new version isn't actually starting up any of your services. Two ways to address this: use twisted.internet.app.startApplication and twisted.internet.app.runReactorWithLogging (these are what "twistd" calls internally) instead of reactor.run, or get rid of the __name__ check and the reactor.run() call, and use "twistd -y <your file>" to run the server.
Jp
Thanks for the suggestions Jp (I assume you meant twisted.application.app, not twisted.internet.app).
Ahh, yes. Finger memory is still using the old system...
I don't use twistd at present because I subclass Logfile to limit the max number of rotating log files and I not aware of how I can do that with twistd.
Yep, twistd doesn't let you control that very well.. Fixing it has long been on my todo list. Jp
participants (2)
-
Jp Calderone
-
Richard.Townsend@edl.uk.eds.com