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>
Release files for python-seth 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-seth-0.6.tar.gz | 16.1 kB | Details |
Release files / python-seth-0.6.tar.gz
| Download URL | python-seth-0.6.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d9b9c2b337808cbadefde894ca3354ccc8675d7810a5879fd5527c644beaafd
|
|
BLAKE2b-256 checksum How to use checksums |
df802fd565f284447353a506a08070f9836a768fb8f96247f0aa86506d4b39be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |