Re: [Twisted-Python] untwisting twistd

2009-07-07 Thread Mikhail
Thanks Jared, this is exactly what I was missing! ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] untwisting twistd

2009-07-06 Thread Jared Gisin
wisted general discussion Subject: Re: [Twisted-Python] untwisting twistd On 2 Jul 2009, at 23:50, Mikhail wrote: In my example I should have written run(application) instead of run(...) Then the difference would be more apparent. Namely, in my 'wrapper' it is explic

Re: [Twisted-Python] untwisting twistd

2009-07-03 Thread Paul Thomas
On 2 Jul 2009, at 23:50, Mikhail wrote: In my example I should have written run(application) instead of run(...) Then the difference would be more apparent. Namely, in my 'wrapper' it is explicit what application will be run and where all the services came from, your 'wrapper' is jus

Re: [Twisted-Python] untwisting twistd

2009-07-02 Thread Mikhail
Phil Christensen bubblehouse.org> writes: > > So, how is this not a wrapper script? The solution I provided in my Yes, in a sense everything is a wrapper for something. :) > last email is already workable, doesn't require shell scripting or > launching a child process, and doesn't interfere

Re: [Twisted-Python] untwisting twistd

2009-07-02 Thread Phil Christensen
On Jul 2, 2009, at 12:08 AM, Mikhail wrote: > IMHO there is a misunderstanding here. The point, at least from my > POV is > to have the same functionality provided by twistd but with a different > interface. Right now twistd is a starter script that is used like: > >twistd -noy -l my.log my_a

Re: [Twisted-Python] untwisting twistd

2009-07-01 Thread Mikhail
IMHO there is a misunderstanding here. The point, at least from my POV is to have the same functionality provided by twistd but with a different interface. Right now twistd is a starter script that is used like: twistd -noy -l my.log my_app.tac As far as I can understand the OP is missing (me

Re: [Twisted-Python] untwisting twistd

2009-06-24 Thread Phil Christensen
On Jun 23, 2009, at 11:27 AM, Jared Gisin wrote: > In order to fire up the app with sane default, I should be able to > issue one command with no arguments as the defaults for all of those > should be baked into the system. [snip] > I guess in the mean time, I'll just write my own custom > Se

Re: [Twisted-Python] untwisting twistd

2009-06-24 Thread Johan Rydberg
On Jun 22, 2009, at 10:30 PM, Jared Gisin wrote: [...] I must say I agree with everything you're saying. Another thing I'm missing is that there's no way to specify _when_ to daemonize the application. Plus I would love if startService could return a deferred, just like stopService does.

Re: [Twisted-Python] untwisting twistd

2009-06-23 Thread Jared Gisin
ed-python-boun...@twistedmatrix.com] On Behalf Of Alex Clemesha Sent: Monday, June 22, 2009 2:36 PM To: Twisted general discussion Subject: Re: [Twisted-Python] untwisting twistd Hi Jared, First off, I'd like to say that I'm basically in agreement with exactly what you are saying, and tha

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Phil Christensen
On Jun 22, 2009, at 5:38 PM, gl...@divmod.com wrote: > On 09:06 pm, p...@bubblehouse.org wrote: >> Look at the init script used to start MySQL sometime, particularly >> when installed from a package on a finicky distro like debian. Or >> Apache. Or bind. Or any one of a number of other complex

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Alex Clemesha
Hi Jared, First off, I'd like to say that I'm basically in agreement with exactly what you are saying, and that is: "I should be able to write a Python script that acts like twistd - not *be* twistd". Phil does have some really good points, such as: """ The critics are usually not thinking about

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread glyph
On 09:06 pm, p...@bubblehouse.org wrote: >On Jun 22, 2009, at 4:30 PM, Jared Gisin wrote: >>Which is iditic as my application may not even expose a 13pidfile or >>a 13logfile and it 19s definatley not called twistd. The platform >>specific application runners need to be more generalized so users

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Phil Christensen
On Jun 22, 2009, at 4:30 PM, Jared Gisin wrote: > Which is iditic as my application may not even expose a –pidfile or > a –logfile and it’s definatley not called twistd. The platform > specific application runners need to be more generalized so users > can write their own twistd equivalent to