On 13-Apr-2009, Alfredo Deza wrote:
By compliant, I do mean to reference PEP 3143 for building the app.
I'm still not sure what you mean by this. I can only assume you mean
that your program will assume the existence of a PEP 3143
implementation (like the ‘python-daemon’ library), and your
On Mon, Apr 13, 2009 at 8:33 PM, Ben Finney
ben+pyt...@benfinney.id.auben%2bpyt...@benfinney.id.au
wrote:
On 13-Apr-2009, Alfredo Deza wrote:
By compliant, I do mean to reference PEP 3143 for building the app.
I'm still not sure what you mean by this. I can only assume you mean
that your
(replying in ‘comp.lang.python’ for wider feedback on this issue)
On 26-Mar-2009, Francis Irving wrote:
On Thu, Mar 26, 2009 at 12:51:06AM +1100, Ben Finney wrote:
The ‘python-daemon’ distribution includes a module,
‘daemon.pidlockfile’. The ‘daemon.pidlockfile.PIDLockFile’ class is
Ben Finney ben+pyt...@benfinney.id.au writes:
I've submitted PEP 3143
URL:http://www.python.org/dev/peps/pep-3143/ to meet this need,
and have re-worked an existing library into a new ‘python-daemon’
URL:http://pypi.python.org/pypi/python-daemon/ library, the
reference implementation.
Now
On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney
bignose+hates-s...@benfinney.id.au wrote:
Jean-Paul Calderone exar...@divmod.com writes:
[snip]
An additional feature which would be useful for the library to
provide, however, would be the setting of euid and egid instead of
uid and gid. This
On Mar 21, 11:06 pm, Ben Finney ben+pyt...@benfinney.id.au wrote:
Floris Bruynooghe floris.bruynoo...@gmail.com writes:
Had a quick look at the PEP and it looks very nice IMHO.
Thank you. I hope you can try the implementation and report feedback
on that too.
One of the things that might
Jean-Paul Calderone exar...@divmod.com writes:
On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney
bignose+hates-s...@benfinney.id.au wrote:
That sounds rather more specific than is needed for the generic
library being proposed here. I'm wary of adding features to an API
that is already quite
Jean-Paul Calderone exar...@divmod.com writes:
Here is a demonstration of the problem:
# python -c '
from __future__ import with_statement
import sys, daemon, os
with daemon.DaemonContext(stdout=sys.stdout, stdin=sys.stdin,
stderr=sys.stderr, uid=1, gid=1) as
Floris Bruynooghe floris.bruynoo...@gmail.com writes:
Had a quick look at the PEP and it looks very nice IMHO.
Thank you. I hope you can try the implementation and report feedback
on that too.
One of the things that might be interesting is keeping file
descriptors from the logging module
Jean-Paul Calderone exar...@divmod.com writes:
The biggest shortcoming seems to be a complete lack of unit tests.
A full unit test suite is in the source distribution's ‘tests/’
directory. You can run it with ‘python ./setup.py test’.
A quick skim of the code suggests that part of it don't
On Sun, 22 Mar 2009 10:19:58 +1100, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Jean-Paul Calderone exar...@divmod.com writes:
The biggest shortcoming seems to be a complete lack of unit tests.
A full unit test suite is in the source distribution's ‘tests/’
directory. You can run it with
Ben Finney b...@benfinney.id.au writes:
Writing a Python program to become a Unix daemon is relatively
well-documented: there's a recipe for detaching the process and
running in its own process group. However, there's much more to a
Unix daemon than simply detaching.
[…]
My searches for
I need wider testing and scrutiny of the implementation and
specification.
PEP: 3143
Title: Standard daemon process library
Version: $Revision: 1.1 $
Last-Modified: $Date: 2009-03-19 12:51 $
Author:Ben Finney ben+pyt...@benfinney.id.au
Status
On Fri, 20 Mar 2009 20:58:58 +1100, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Ben Finney b...@benfinney.id.au writes:
Writing a Python program to become a Unix daemon is relatively
well-documented: there's a recipe for detaching the process and
running in its own process group. However,
On Fri, 20 Mar 2009 21:47:00 +1100, Ben Finney
bignose+hates-s...@benfinney.id.au wrote:
[snip]
Somewhat by accident I noticed this other part of the PEP:
Other Python daemon implementations that differ from this PEP:
[snip]
* Twisted [twisted]_ includes, perhaps unsurprisingly, an
On Mar 20, 9:58 am, Ben Finney ben+pyt...@benfinney.id.au wrote:
Ben Finney b...@benfinney.id.au writes:
Writing a Python program to become a Unix daemon is relatively
well-documented: there's a recipe for detaching the process and
running in its own process group. However, there's much
16 matches
Mail list logo