help-cfengine
[Top][All Lists]
Advanced

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

RE: facility


From: Andrews, Martin
Subject: RE: facility
Date: Fri, 25 Jan 2002 10:31:43 -0500

I believe the relevant section for the cfagent facility is:

cfagent.c:
        openlog(VPREFIX,LOG_PID|LOG_NOWAIT|LOG_ODELAY,LOG_USER);

also:

cfenvd.c:openlog(VPREFIX,LOG_PID|LOG_NOWAIT|LOG_ODELAY,LOG_USER);
cfenvd.c:openlog(VPREFIX,LOG_PID|LOG_NOWAIT|LOG_ODELAY,LOG_DAEMON);
cfexecd.c:openlog(VPREFIX,LOG_PID|LOG_NOWAIT|LOG_ODELAY,LOG_DAEMON);
cfservd.c:openlog(VPREFIX,LOG_PID|LOG_NOWAIT|LOG_ODELAY,LOG_DAEMON);

Still hardcoded, but it should be easy to patch.

Martin

> -----Original Message-----
> From: Adrian Phillips [mailto:address@hidden
> Sent: Thursday, January 24, 2002 1:14 AM
> To: Alan Silver
> Cc: address@hidden
> Subject: Re: facility
> 
> 
> >>>>> "Alan" == Alan Silver <address@hidden> writes:
> 
>     Alan> Hi all!  Is there a way to compile cfengine so that you can
>     Alan> control where the syslog messages go. I guess I am trying to
>     Alan> figure out if there is a way to change the FACILITY.
> 
> In 1.6.3 and 2.0.15a :-
> 
> log.c :
>                       syslog(LOG_NOTICE, "%s", buffer); 
> 
> so know you can't currently alter syslog. I'd suggest hacking a quick
> patch to add a syslog_facility variable,
> 
> Sincerely,
> 
> Adrian Phillips
> 
> -- 
> Your mouse has moved.
> Windows NT must be restarted for the change to take effect.
> Reboot now?  [OK]
> 
> _______________________________________________
> 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]