help-cfengine
[Top][All Lists]
Advanced

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

Re: processes and exclude patterns


From: khalid . sattar
Subject: Re: processes and exclude patterns
Date: Wed, 5 Mar 2003 19:37:13 +0000

At 05/03/2003 17:55:01, Jeff Sheltren <address@hidden> 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.

Yep, that did it.  Thanks to all for responding so quickly. I thought I was
going crazy.

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