[Twisted-Python] passing command line args to twistd daemons
itamar at itamarst.org
Thu Aug 18 15:42:09 EDT 2005
On Thu, 2005-08-18 at 15:29 -0400, Garry Hodgson wrote:
> so, is there a way to accomplish this? if not, what is the
> preferred mechanism for customizing an application's
> behavior at startup time?
Not at the moment. Two alternatives (not contradictory) we've been
1. Turn twistd into a library, so you can write your own command-line
tools reusing its functionality. Patches accepted, this should be a
pretty easy refactor.
2. Adding coil support to twistd and twisted in general
(http://itamarst.org/software/coil-0.1.1.tar.gz); in addition to the
general configuration power this gives you, coil files can also be
overridden by command-line tools in a generic way.
Short term, you could have the .tac point at a configuration file which
you could edit separately.
More information about the Twisted-Python