title: What is the de facto library for creating Python Daemons
body: <p>I am attempting to use the <a href="http://pypi.python.org/pypi/python-daemon/" rel="nofollow noreferrer">python-daemon</a> library which seemed to me to be the safest way to create a Daemon without forgetting anything. The documentation is quite poor, being just <a href="http://www.python.org/dev/peps/pep-3143/" rel="nofollow noreferrer">PEP 3143</a>.</p>
  
  <p><strong>On the other hand</strong>, I have found a lot of links to Sander Marechal's <a href="https://gist.github.com/zhengdianyong/b035b5e1ded8d75d150c" rel="nofollow noreferrer">A simple unix/linux daemon in Python</a>. This looks to be a nicer solution or though I have not yet attempted to use it.</p>
  
  <p>Edit: I have used Sander Marechal's solution and it seems to work nicely.</p>
  
  <hr>
  
  <p>So what is the de facto way in the Python community to create a Daemon, is it one of these libraries, or simply doing it all yourself (forking twice etc.)?</p>
  
  <p>Also, you would think that any library with a PEP would be a far better choice since it is closer to a comprehensive way of creating a Daemon (or at least a more standard way) than any other solution. So what is the deal with this <code>python-daemon</code> package, would it ever be included in the standard library?</p>