Re: [Twisted-Python] twisted daemonize problem

2010-11-09 Thread Marco Giusti
On Tue, Nov 09, 2010 at 06:58:05AM -0500, Neal Becker wrote: > Thanks for the suggestions. > > I'd also like to add authentication, but it seems rather daunting. You should not. Add basic or digest authentication is really easy. Take a look at Calderone's Twisted Web in 60 seconds: HTTP authentic

Re: [Twisted-Python] twisted daemonize problem

2010-11-09 Thread Neal Becker
Thanks for the suggestions. I'd also like to add authentication, but it seems rather daunting. Maybe I could just restrict the xmlrpc to listen only on connection from the local host? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com h

Re: [Twisted-Python] twisted daemonize problem

2010-11-08 Thread Marco Giusti
On Mon, Nov 08, 2010 at 01:50:38PM -0500, Neal Becker wrote: > I seem to have things working OK with twistd. > > My app is a batch scheduling system that listens for commands via xmlrpc. > It is very simple at this point, and I'm attaching it. I would welcome any > suggestions for improvement,

Re: [Twisted-Python] twisted daemonize problem

2010-11-08 Thread Neal Becker
I seem to have things working OK with twistd. My app is a batch scheduling system that listens for commands via xmlrpc. It is very simple at this point, and I'm attaching it. I would welcome any suggestions for improvement, since I'm a newb to twisted, and a lot of this was guesswork. task.p

Re: [Twisted-Python] twisted daemonize problem

2010-11-08 Thread Marco Giusti
On Mon, Nov 08, 2010 at 09:49:44AM -0500, Neal Becker wrote: > Itamar Turner-Trauring wrote: > >> On Mon, 2010-11-08 at 08:53 -0500, Neal Becker wrote: >>> I try to daemonize twisted, but it uses 100% cpu. >>> >>> The problem occurs in this code: >> >> Why not use twistd, which does all this for

Re: [Twisted-Python] twisted daemonize problem

2010-11-08 Thread Neal Becker
Itamar Turner-Trauring wrote: > On Mon, 2010-11-08 at 08:53 -0500, Neal Becker wrote: >> I try to daemonize twisted, but it uses 100% cpu. >> >> The problem occurs in this code: > > Why not use twistd, which does all this for you already? E.g. > http://twistedmatrix.com/documents/10.1.0/core/how

Re: [Twisted-Python] twisted daemonize problem

2010-11-08 Thread Itamar Turner-Trauring
On Mon, 2010-11-08 at 08:53 -0500, Neal Becker wrote: > I try to daemonize twisted, but it uses 100% cpu. > > The problem occurs in this code: Why not use twistd, which does all this for you already? E.g. http://twistedmatrix.com/documents/10.1.0/core/howto/application.html or the more sophisti