That indeed worked. It did occur to me for a fleeting moment when I looked at the man page; however, when I ran 'twistd --help-reactors' it spit out nothing so I was not sure of exactly what it wanted or if it worked at all.
----- Original Message ---- From: Christopher Armstrong firstname.lastname@example.org To: Twisted general discussion email@example.com Sent: Wednesday, September 12, 2007 5:15:53 PM Subject: Re: [Twisted-Python] Multiple Twisted Application Plugins in the same directory?
On 9/12/07, Beau Hargis firstname.lastname@example.org wrote:
For one of the services I want to use pollreactor or epollreactor, so each of the Services has only 4 lines in it:
from twisted.internet import pollreactor pollreactor.install() import Project.Processors.ProcessorX theService = Project.Processors.ProcessorX.ProcXServiceMaker()
Don't install a reactor in the plugin: in fact, don't import the reactor at all. The correct way to choose the reactor is by passing the "-r" or "--reactor" argument to 'twistd', like 'twistd -r poll myplugin'