Re: PID lockfile

2009-03-29 Thread JanC
Aahz wrote: >>Okay. But is that something that needs to be accommodated with, >>specifically, PID file handling? Why would a PID file ever need to be >>on NFS storage instead of local? > > That's the question. You'll probably get some complaints from people > running diskless machines, eventually

Re: PID lockfile

2009-03-29 Thread Aahz
In article <87zlf5qi4z@benfinney.id.au>, Ben Finney wrote: >a...@pythoncraft.com (Aahz) writes: >> In article <87iqlwvemo@benfinney.id.au>, >> Ben Finney wrote: >>> >>>In the case of the ‘lockfile’ library, Skip is aiming for a >>>cross-platform solution, with atomic behavi

Re: PID lockfile

2009-03-28 Thread Ben Finney
Cameron Simpson writes: > […] there's plenty of occasions when I want to start a daemon, as > me, for my own personal purposes. It doesn't do any uid/gid juggling > or privilege dropping, but it's a perfectly reasonable thing to want > to use your daemon module to do everything else (detach, pid

Re: PID lockfile

2009-03-28 Thread Cameron Simpson
On 29Mar2009 11:37, Ben Finney wrote: | a...@pythoncraft.com (Aahz) writes: | > In article <87iqlwvemo@benfinney.id.au>, | > Ben Finney wrote: | > >In the case of the ‘lockfile’ library, Skip is aiming for a | > >cross-platform solution, with atomic behaviour; he has implemented | > >loc

Re: PID lockfile

2009-03-28 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: > In article <87iqlwvemo@benfinney.id.au>, > Ben Finney wrote: > >In the case of the ‘lockfile’ library, Skip is aiming for a > >cross-platform solution, with atomic behaviour; he has implemented > >lock acquisition with a ‘link’ operation on Unix,

Re: PID lockfile

2009-03-28 Thread Aahz
In article <87iqlwvemo@benfinney.id.au>, Ben Finney wrote: > >In the case of the ‘lockfile’ library, Skip is aiming for a >cross-platform solution, with atomic behaviour; he has implemented >lock acquisition with a ‘link’ operation on Unix, and a ‘mkdir’ >operation on Windows. > >

Re: PID lockfile

2009-03-26 Thread Ben Finney
Ben Finney writes: > (replying in ‘comp.lang.python’ for wider feedback on this issue) > > On 26-Mar-2009, Francis Irving wrote: > > ourlockfile.path = '/tmp/mydaemon.pid' > > context = daemon.DaemonContext( > > pidfile=ourlockfile, > > stdout=logout, > > stderr=logout > > ) > > > >

Re: PID lockfile (was: PEP 3143: Standard daemon process library)

2009-03-26 Thread Ben Finney
(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 > >