Re: [Python-Dev] Daemon creation code in the standard library

2013年7月26日 10:11:07 -0700

On 2013年7月26日 09:38:10 +0200
Ronald Oussoren <[email protected]> wrote:
> 
> On 25 Jul, 2013, at 4:18, Ben Finney <[email protected]> wrote:
> 
> > Ben Finney <[email protected]> writes:
> > 
> >> Work continues on the PEP 3143-compatible ‘python-daemon’, porting it to
> >> Python 3 and aiming for inclusion in the standard library.
> 
> At first glance the library appears to close all open files, with an option
> to exclude some specific file descriptors (that is, you need to pass a list
> of files that shouldn't be closed). 
Indeed, it's annoying when you want to setup logging before
daemonization starts. I had to hack my way through logging handlers to
find the fd I had to keep open.
> That makes it a lot harder to do some initialization before daemonizing.
> I prefer to perform at least some initialization early in program startup to
> be able to give sensible error messages. I've had too many initscripts that
> claimed to have started a daemon sucessfully, only to have that daemon stop
> right away because it noticed a problem right after it detached itself.
Agreed.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to