Library to implement a well-behaved Unix daemon process.
Project description
This library implements the well-behaved daemon specification of
:pep:`3143`, “Standard daemon process library”.
A well-behaved Unix daemon process is tricky to get right, but the
required steps are much the same for every daemon program. A
`DaemonContext` instance holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.
Simple example of usage::
import daemon
from spam import do_main_program
with daemon.DaemonContext():
do_main_program()
Customisation of the steps to become a daemon is available by
setting options on the `DaemonContext` instance; see the
documentation for that class for each option.
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
python_daemon-3.1.0.tar.gz
(61.9 kB
view details)
Built Distribution
File details
Details for the file python_daemon-3.1.0.tar.gz
.
File metadata
- Download URL: python_daemon-3.1.0.tar.gz
- Upload date:
- Size: 61.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb621d7e5f46e74b4de1ad6b0fff6e69cd91b4f219de1476190ebdd0f4781df |
|
MD5 | 3a8bfff82b31d40088e165c3dff345a9 |
|
BLAKE2b-256 | 54cdd62884732e5d6ff6906234169d06338d53e37243c60cf73679c8942f9e42 |
File details
Details for the file python_daemon-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: python_daemon-3.1.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66b5896f0aed5807a25c6128268eb496488b1f9c6927c487710049ba16be32a |
|
MD5 | 1acccba3c9eebbd3f24ae089126c4ef1 |
|
BLAKE2b-256 | 877809ce91de8b31930c415d7439fa4f9d00d25af57135c16358c0b5b0ae0dea |