What is the de facto library for creating Python Daemons
I am attempting to use the [python-daemon][1] library which seemed to me to be the safest way to create a Daemon without forgetting anything. The documentation is quite poor, being just [PEP 3143][2]. The "latest version" in PyPI is 1.5.5, however `pip` will install 1.6.

It requires the `lockfile` module which underwent [large changes][3] in 0.9.1. `python-daemon` uses >= 0.7 (in 1.5.5) and >= 0.8 (in 1.6). Both of which are broken by the changes in 0.91. This module seems unmaintained or broken or both.

**On the other hand**, I have found a lot of links to Sander Marechal's [A simple unix/linux daemon in Python][4]. This looks to be a nicer solution or though I have not yet attempted to use it.

---

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.)?

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 `python-daemon` package, would it ever be included in the standard library?

[1]: http://pypi.python.org/pypi/python-daemon/1.6
[2]: http://www.python.org/dev/peps/pep-3143/
[3]: http://pypi.python.org/pypi/lockfile/0.9.1
[4]: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
What is the de facto library for creating Python Daemons
===

I am attempting to use the [python-daemon][1] library which seemed to me to be the safest way to create a Daemon without forgetting anything. The documentation is quite poor, being just [PEP 3143][2]. The "latest version" in PyPI is 1.5.5, however `pip` will install 1.6.

It requires the `lockfile` module which underwent [large changes][3] in 0.9.1. `python-daemon` uses >= 0.7 (in 1.5.5) and >= 0.8 (in 1.6). Both of which are broken by the changes in 0.91. This module seems unmaintained or broken or both.

**On the other hand**, I have found a lot of links to Sander Marechal's [A simple unix/linux daemon in Python][4]. This looks to be a nicer solution or though I have not yet attempted to use it.

---

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.)?

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 `python-daemon` package, would it ever be included in the standard library?

[1]: http://pypi.python.org/pypi/python-daemon/1.6
[2]: http://www.python.org/dev/peps/pep-3143/
[3]: http://pypi.python.org/pypi/lockfile/0.9.1
[4]: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/