[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: |
Thu, 30 Sep 2004 10:21:17 -0500 |
User-agent: |
Mutt/1.4.2.1i |
I run 'cfexecd -g' from init, and 'cfexecd -F' in cron.
My understanding for running cfexecd instead of just running cfagent
is that cfexecd handles the logging and mailing the admin.
Options:
--help (-h)
--debug (-d)
--verbose (-v)
--file (-f)
--no-fork (-F)
--once (-1)
--foreground (-g)
--parse-only (-p)
--ld-library-path (-L)
Russell
On Thu, Sep 30, 2004 at 04:15:54PM +1000, Tim Nelson wrote:
> >On Mon, Sep 27, 2004 at 07:13:54AM -0500, Russell Adams wrote:
> >>I've got a strange problem occuring.
> >>
> >>I run 'cfexecd -g' from inittab scheduled to run on the hour, and
> >>'cfexecd -F' in crontab set to run at thiry minutes after the hour.
>
> Hmm. I don't have a -g on my cfexecd man page, and I'm using
> 2.1.0 p1 like you.
>
> 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)
>
> Why? Because cfexecd lives in memory and runs cfagent every x
> amount. Now you're wondering why anyone would write the
> mini-cron-replacement called cfexecd, and the answer is that it's more
> flexible in cfengine-specific circumstances (I think :) ).
>
> Anyway, you also want your cfagent.conf (or a subfile) to have
> something like the following:
>
> schedule = ( Min00_05 Min30_35 )
>
> >>I get proper logs in /var/cfengine/outputs for each invocation of
> >>cfexecd from cron, but all the logs from the child of init are 0
> >>length files.
> >>
> >>I thought I was only getting this related to updates, but all of my
> >>systems are having the same problem.
> >>
> >>Has anyone else here reproduced this? I'm on cfengine-2.1.0p1.
>
> Does what I said help?
>
>
> --
> Tim Nelson
> Server Administrator
> WebAlive Technologies Global
> Level 1 Innovation Building, Digital Harbour
> 1010 LaTrobe Street
> Docklands, Melbourne,
> Vic, 3008
> Phone: +61 3 9934 0812
> Fax: +61 3 9934 0899
> E-mail: tim.nelson@webalive.biz
> http://www.webalive.biz/
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine