(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 writes:
> I've submitted PEP 3143
> http://www.python.org/dev/peps/pep-3143/> to meet this need,
> and have re-worked an existing library into a new ‘python-daemon’
> http://pypi.python.org/pypi/python-daemon/> library, the
> reference implementation.
>
> Now I need wider testing and
Jean-Paul Calderone writes:
> On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney
> 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 complex.
> >
> >Isn't setting the EUID and EGID
On Mar 21, 11:06 pm, Ben Finney wrote:
> Floris Bruynooghe 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
On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney
wrote:
Jean-Paul Calderone 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 is necessary, for example, to write an SSH daemon
whic
Jean-Paul Calderone 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 c:
> pa
On Sun, 22 Mar 2009 10:19:58 +1100, Ben Finney
wrote:
Jean-Paul Calderone 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’.
Of course this is
Jean-Paul Calderone 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 even work at
> all
Floris Bruynooghe 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 open by default.
Hmm. I see
On Mar 20, 9:58 am, Ben Finney wrote:
> Ben Finney 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 detac
On Fri, 20 Mar 2009 21:47:00 +1100, Ben Finney
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
implementation of a process daemonisat
On Fri, 20 Mar 2009 20:58:58 +1100, Ben Finney
wrote:
Ben Finney 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 de
Ben Finney writes:
> I've submitted PEP 3143 http://www.python.org/dev/peps/pep-3143/>
> to meet this need, and have re-worked an existing library into a new
> ‘python-daemon’ http://pypi.python.org/pypi/python-daemon/>
> library, the reference implementation.
>
> Now I need wider testing and sc
Ben Finney 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 such functionality
14 matches
Mail list logo