[Python-ideas] Draft PEP: Standard daemon process library
g.brandl at gmx.net
Sat Mar 14 10:24:29 CET 2009
Ben Finney schrieb:
> Howdy all,
> Significant changes in this release:
> * Name the daemon process context class `DaemonContext`, since it
> doesn't actually represent a separate daemon. (The reference
> implementation will also have a `DaemonRunner` class, but that's
> outside the scope of this PEP.)
> * Implement the context manager protocol, allowing use as a ‘with’
> context manager or via explicit ‘open’ and ‘close’ calls.
> * Delegate PID file handling to a `pidfile` object handed to the
> `DaemonContext` instance, and used simply as a context manager.
> * Simplify the set of options by using a mapping for signal handlers.
> * Target Python 3.2, since the reference implementation will very
> likely not be complete in time for anything earlier.
This looks like it should be submitted as a formal PEP now; that should also
ensure more interest in it, and an eventual resolution.
More information about the Python-ideas