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

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Mon Oct 15 09:49:39 EDT 2012


On 8 Oct, 12:13 am, schenette at 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 twistd, you do not call `reactor.run` yourself.  This is 
why your application isn't daemonizing.

Jean-Paul



More information about the Twisted-Python mailing list