Library to enable your code run as a daemon process on Unix-like systems.
daemonize is a library for writing system daemons in Python. It was forked from daemonize.sourceforge.net.
You can install it from Python Package Index (PyPI) using $ pip install daemonize
pid = “/tmp/test.pid” logfile = “/tmp/test.log”
- def main():
- while True:
- daemonize.logging.debug(“Doing some pointless job.”) time.sleep(5)
daemonize.start(main, pid, logfile, debug=True)
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size daemonize-1.2.tar.gz (2.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|