Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-18 Thread David Strauss
I also recommend looking at systemd and Upstart, even in combination with twistd. Twisted's twistd will daemonize the process, but it won't give you named services and a clean environment. -- David Strauss | da...@davidstrauss.net ___ Twisted-Python

Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-15 Thread Glyph
On Oct 7, 2012, at 5:13 PM, Stephan wrote: > hey Jean-Paul, > > I'm using twistd - if you see the daemon code it's in there to start and > manage the service. > > For some reason the OC Daemon pastebin linkted didn't work but this one does: > > OC Daemon that starts the OC Service > http://pa

Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-15 Thread exarkun
On 8 Oct, 12:13 am, schene...@gmail.com wrote: >hey Jean-Paul, > >I'm using twistd - if you see the daemon code it's in there to start >and >manage the service. I see. However, you are not using it correctly. ;) The very last line of the code you pasted is: reactor.run() When you use twi

Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-15 Thread Stephan
hey Jean-Paul, I'm using twistd - if you see the daemon code it's in there to start and manage the service. For some reason the OC Daemon pastebin linkted didn't work but this one does: OC Daemon that starts the OC Service http://pastebin.com/g0UE7An8 still know don't know what to change to get

Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-06 Thread exarkun
On 6 Oct, 10:30 pm, schene...@gmail.com wrote: >Hi, > >I'm attempting to create an ubuntu service that when started will run >in >the background processing beanstalk jobs. >I've taken the code from beanstalk-client twisted to act as my >beanstalk >client ( >https://github.com/dustin/beanstalk-cli