help-cfengine
[Top][All Lists]
Advanced

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

Re: processes and exclude patterns


From: Mark . Burgess
Subject: Re: processes and exclude patterns
Date: Wed, 5 Mar 2003 19:31:07 +0100 (MET)

Actually, this is my mistake -- I seem to have fixed that problem,
so Jeff's answer is right I guess.

(sorry)
M


On  5 Mar, To: sheltren@cs.ucsb.edu wrote:
> 
> The problem is actually that cfexecd has locking to avoid runaway
> instantiations, and thus when cfexecd runs cfagent, cfexecd cannot be
> started because it is already running.
> 
> I thinka simple fix can be made. I'll get back to you soon.
> 
> M
> 
> 
> On  5 Mar, Jeff Sheltren wrote:
>> Hi Khalid, someone else had this same problem recently - I'll paste
>> their solution:
>> 
>>>I ended up with this:
>>>
>>>    processes:
>>>        "cfexecd$" restart "/var/cfengine/bin/cfexecd"
>>>
>>>I didn't know the "cfexecd$" could be a regexp.  The $ prevents the
>>>"cfexecd -F" from matching.  I expected this to work too, but it
>>>didn't seem to:
>>>
>>>    processes:
>>>       "cfexecd" exclude="-F" restart "/var/cfengine/bin/cfexecd"
>>>
>>>-- 
>>>matt
>> 
>> Hope that helps.
>> 
>> -Jeff
>> 
>> On Wed, 2003-03-05 at 09:40, khalid.sattar@globalgraphics.com wrote:
>>> Hi
>>> 
>>> I run cfexecd as a daemon scheduled between 30-35 mins every hour, but I 
>>> also
>>> run cfexecd -F from cron.  I have the following defined in my master
>>> cfagent.conf file
>>> 
>>> 
>>> processes:
>>>      "$(CfBinDir)/cfexecd" restart "$(CfBinDir)/cfexecd"
>>> 
>>> But I found that this would not restart the daemon if it had died.  Then I
>>> realised this is because once the daemon dies, then cfagent only gets called
>>> from cron (via cfexecd -F) and at that point the process list matches 
>>> cfexecd
>>> -F.  So I have been trying various incarnation of fixes without success.  
>>> The
>>> one that seems obvious is
>>> 
>>>      "$(CfBinDir)/cfexecd" exclude="cfexecd.*-F" restart 
>>> "$(CfBinDir)/cfexecd"
>>> 
>>> But this does not work.  can someone point out where I am going wrong?
>>> 
>>> Also how do I get more debugging info here?, As I invoke it via cfexecd, 
>>> then
>>> putting -v against the latter does not run cfagent in -v.  So I cant see 
>>> why the
>>> exclude pattern is not matching.
>>> 
>>> I am running cfengine 2.0.2 on Solaris 8.
>>> 
>>> Thanks
>>> 
>>> ---
>>> Khalid Sattar
>>> Systems Administrator
>>> Global Graphics
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Help-cfengine mailing list
>>> Help-cfengine@gnu.org
>>> http://mail.gnu.org/mailman/listinfo/help-cfengine
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@gnu.org
>> http://mail.gnu.org/mailman/listinfo/help-cfengine
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]