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


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to