How do you create a daemon in Python?

后端 未结 16 1694
轻奢々
轻奢々 2020-11-22 01:55

Searching on Google reveals x2 code snippets. The first result is to this code recipe which has a lot of documentation and explanation, along with some useful discussion und

16条回答
  •  逝去的感伤
    2020-11-22 02:28

    since python-daemon has not yet supported python 3.x, and from what can be read on the mailing list, it may never will, i have written a new implementation of PEP 3143: pep3143daemon

    pep3143daemon should support at least python 2.6, 2.7 and 3.x

    It also contains a PidFile class.

    The library only depends on the standard library and on the six module.

    It can be used as a drop in replacement for python-daemon.

    Here is the documentation.

提交回复
热议问题