0ea12be3c43f580db67f405c6c4b8efa82565f49
daemonize
Description
daemonize is a library for writing system daemons in Python. It was forked from daemonize.sourceforge.net. It is distributed under PSF license.
Installation
You can install it from Python Package Index (PyPI):
$ pip install daemonize
Usage
#!/usr/bin/env python
from time import sleep
import daemonize
pid = "/tmp/test.pid"
logfile = "/tmp/test.log"
def main():
while True:
daemonize.logging.debug("Doing some pointless job.")
sleep(5)
daemonize.start(main, pid, logfile, debug=True)
Description
Languages
Python
99.1%
Makefile
0.9%
