title: Python Twisted Daemon
body: <p>I have written a simple twisted server - </p>
  
  <pre><code>from twisted.internet import reactor
  from twisted.internet import protocol
  from twisted.web import server, resource
  from twisted.internet import reactor
  
  class Index(resource.Resource):
      isLeaf = True
      def render_GET(self, request):
          args = request.args
          print 'Args: %s' %(repr(args))
  
  print 'Serving on PORT: 8090'
  site = server.Site(Index())
  reactor.listenTCP(8090, site)
  reactor.run()
  </code></pre>
  
  <p>This runs fine on <code>127.0.0.1:8090</code>. Note this this runs in terminal (foreground), when I make the process run in background using <code>nohup</code> &amp; <code>ctrl+Z</code>. the server does not respond to requests. What should I do to daemonize this twisted server</p>