[Twisted-Python] A useful value for argv
radix at twistedmatrix.com
Mon Feb 10 20:56:02 EST 2003
On Mon, Feb 10, 2003 at 06:16:53PM -0500, Jp Calderone wrote:
> I think it would be neat if twistd re-executed itself(/python), and
> specified the name of the tap/tas/tax file it was currently processing as
> the value for argv. This would make administering a system with many
> twistd processes running much easier. Want to see your webserver? Just
> run "ps -C web.tap". Of course there could still be name conflicts, but
> this might encourage the naming of tap files to be more selective. The
> system wide twisted.web tap could be "system-web" and Bob's distributed web
> could be "bob-web".
> It makes integration with init scripts easier, too (at least on the
> system's I'm familiar with), for the same reason. Instead of keeping track
> of pid files, just specify the name of the tap to start/stop/whatever.
> Anyone like? Anyone hate?
I think it would be pretty neat. But if we do it, as you mention
above, it would lead to name conflicts. I think an `--appname'
argument to `mktap' would be in order.
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
More information about the Twisted-Python