help-cfengine
[Top][All Lists]
Advanced

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

Re: Lack of output


From: Russell Adams
Subject: Re: Lack of output
Date: Mon, 11 Oct 2004 09:19:18 -0500
User-agent: Mutt/1.4.2.1i

This still doesn't explain why my cfexecd's are locking this way,
preventing two runs within an hour.

So, I guess I'll have to run cfexecd from cron to ONLY check to ensure
cron is running, and then run cfagent directly from cron and handle
the logging myself to ensure its running.

Russell


On Thu, Sep 30, 2004 at 04:44:45PM -0500, Wheeler, John wrote:
> > 
> > So, in order to differentiate the tasks, are you using
> > schedule+timeclasses to
> > make cfexecd only check the cron configuration?
> 
> cfexecd run from cron runs cfagent immediately (well... with some
> splay).
> 
> > 
> > Then in cron, you're calling cfagent directly instead of cfexecd?
> 
> cfexecd.
> 
> > 
> > Care to share your crontab entry?
> 
> 0 * * * * FROMCRON=true;export FROMCRON;/usr/local/sbin/cfexecd -F
> 
> 
> I have another script to determine if cfagent was invoked via the
> cfexecd from init (I check to see if cfagnet's parent is cfexecd then if
> its parent is pid 1). This allows me to further run another cfagent at
> anytime without stomping on either the init or cron cfagent.
> 
> > 
> > Russell
> > 
> > On Thu, Sep 30, 2004 at 03:50:04PM -0500, Wheeler, John wrote:
> > > >         I'm not sure what you mean about the inittab bit, but here's
> > > what
> > > > I suggest: use one of the following, but *not both*:
> > > > -       Use cron to run cfagent (not cfexecd)
> > > > -       Run cfexecd from your init scripts, and don't run it from cron
> > > >         (this is the recommended option)
> > > >
> > > I actually run cfagent in both init and cron. The cfexecd run from
> init
> > > does nothing but ensure that the appropriate line in cron exists,
> and
> > > that cron is running. The cfexecd run from cron does all the work. I
> > > chose this after being disappointed with lockups (though infrequent)
> in
> > > cfagent for what ever reason.
> > >
> > > If I had stuff scheduled, and cfagent was locked up, the next
> interval
> > > would not happen, preventing many of my cron replacement jobs from
> > > running. Now all my cron type jobs run out of cfagent run from the
> cron
> > > invocation.
> > >
> > > Get it 8-)
> > >
> > >
> > > _______________________________________________
> > > Help-cfengine mailing list
> > > Help-cfengine@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/help-cfengine
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
-----------------------------
Russell Adams
RLAdams@AdamsInfoServ.com
http://www.adamsinfoserv.com/




reply via email to

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