Excellent, thanks for your help.  I was wondering one other thing:

What is the benefit of launching cfagent from cfexecd using cron?  The
reason I ask is that I think it might be much easier to execute cfagent
directly from a shell script, and then mail the output to myself.  I could
strip out the stat messages inside my shell script, rather than modifying
the source code.

This would allow me to use the same Blastwave packages that I've been using,
without rebuilding from code every time there is a cfengine update.

Could someone tell me what the advantages or disadvantages of doing this
might be?

Thanks,

Luke

-----Original Message-----
From: Eric Sorenson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 03, 2005 4:40 PM
To: Luke Youngblood
Cc: [email protected]
Subject: RE: SingleCopy Nirvana - stat warnings

On Mon, 2 May 2005, Luke Youngblood wrote:

> I'm still having issues with the stat messages and hoping someone could
help
> me out here.  In the SingleCopy Nirvana wiki page, he references a patch
to
> cfservd that removes the stat messages unless you execute it with a -v.
Is
> there a similar patch for cfagent, or does anyone know of an easy way to
do
> this?

I guess that's me, I wrote the wiki page and the patch.

Here's one to do the same thing in cfagent.

*** do.c        2005-05-03 13:39:21.000000000 -0700
--- do.c.eric   2005-05-03 13:38:45.000000000 -0700
***************
*** 2449,2455 ****
        if (cfstat(path,&statbuf,ip) == -1)
           {
           snprintf(OUTPUT,CF_BUFSIZE*2,"Can't stat %s in copy\n",path);
!          CfLog(cfinform,OUTPUT,"");
           SILENT = savesilent;
           ResetOutputRoute('d','d');
           continue;
--- 2449,2455 ----
        if (cfstat(path,&statbuf,ip) == -1)
           {
           snprintf(OUTPUT,CF_BUFSIZE*2,"Can't stat %s in copy\n",path);
!          CfLog(cfverbose,OUTPUT,"");
           SILENT = savesilent;
           ResetOutputRoute('d','d');
           continue;



-- 
 - Eric Sorenson - N37 17.255 W121 55.738 - http://eric.explosive.net -
 - Personal colo with a professional touch - http://www.explosive.net -



_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to