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 details)
File details
Details for the file daemonize-1.2.tar.gz.
File metadata
- Download URL: daemonize-1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1639e3a67e45242c996344a350342da39bb5269b7411a91f08a3c0eb308c0d6e
|
|
| MD5 |
b4cdd1b2eafe859d0b17c00e3d32d01a
|
|
| BLAKE2b-256 |
6bb71d062f9332d432997e8b1f4874a85eee872b557313f9cbbebb0c3b127108
|