python-seth is a pretty simple object named Daemon used to daemonize a process.
To do so subclass the Daemon object and override its run method with the code you want to turn into a unix daemon.
You can override the shutdown method which is called on Daemon stop (either via the stop method or on SIGTERM).
Cf. examples for code snippet.
- FEATURES:
redirects stderr|stdout to file
writes a pid file
transparently deletes the pid file at stop
catch SIGTERM and handles a clean stop via shutdown method
- UPSTREAM:
Code maintained at http://git.kaliko.me/?p=python-seth.git Please send feedback at <kaliko@azylum.org>
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-seth-0.6.tar.gz.
File metadata
- Download URL: python-seth-0.6.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d9b9c2b337808cbadefde894ca3354ccc8675d7810a5879fd5527c644beaafd
|
|
| MD5 |
466890030654abe35b126acc2272a772
|
|
| BLAKE2b-256 |
df802fd565f284447353a506a08070f9836a768fb8f96247f0aa86506d4b39be
|