[Twisted-Python] twistd plugin or .tac file?
Itamar Shtull-Trauring
itamar at itamarst.org
Wed Sep 2 08:56:13 EDT 2009
On Tue, 2009-09-01 at 13:39 -0400, Martin-Louis Bright wrote:
> Which is the recommended or preferred way to deploy an app that will
> leverage twistd: designing the app as a twistd plugin or creating a
> Service and using a .tac file?
A plugin is nicer in that you can have command-line options, e.g.
$ twistd -n web --path=/tmp --port=8080
> Also, if you need to expose your functionality as a Service to
> properly use the twisted application framework, how do you achieve
> this if your app doesn't need a network port?
Just subclass Service and override startService and stopService to do
whatever you need to start and stop.
--Itamar
More information about the Twisted-Python
mailing list