help-cfengine
[Top][All Lists]
Advanced

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

Re: processes and exclude patterns


From: Jeff Sheltren
Subject: Re: processes and exclude patterns
Date: 05 Mar 2003 09:55:01 -0800

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, address@hidden 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cfengine






reply via email to

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