help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfexecd locks


From: Mark . Burgess
Subject: Re: cfexecd locks
Date: Wed, 24 Sep 2003 19:02:20 +0200 (MEST)

This is sort of correct. You should only have one instantiation of the daemon
running hence the lock. But it is possible that the process dies without
releasing its lock, so cfexecd automatically tried to ensure
consistency. This is not perfect behavour, but it is predictable.

I cannot think of a better solution that will work in the absence
of human intervention.

Mark

On 24 Sep, Alec H. Peterson wrote:
> I've got a question about cfexecd locks (specifically, the main cfexecd one 
> that it acquires when it starts).  If I try to start another instance of 
> cfexecd while a previous one is still running, the new process tries to 
> kill the old cfexecd, but it seems that it is trying to kill the wrong 
> process ID.  I went through the code and it looks like the cfexecd lock is 
> acquired before the program forks off and goes into server mode, so the 
> process ID in the lock is not the actual daemon, but rather it is the one 
> that exited when the program forked off.
> 
> Is this the desired behavior or not?
> 
> Alec



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]