Library to enable your code run as a daemon process on Unix-like systems.
Project description
Description
daemonize is a library for writing system daemons in Python. It was forked from daemonize.sourceforge.net.
Installation
You can install it from Python Package Index (PyPI) using $ pip install daemonize
Usage
#!/usr/bin/python
import time
import 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
daemonize-1.2.tar.gz
(2.5 kB
view hashes)