[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfengine-help
Subject:    RE: facility
From:       "Andrews, Martin" <mandrews () netgenics ! com>
Date:       2002-01-25 15:31:43
[Download RAW message or body]

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:a.phillips@dnmi.no]
> Sent: Thursday, January 24, 2002 1:14 AM
> To: Alan Silver
> Cc: help-cfengine@gnu.org
> Subject: Re: facility
> 
> 
> >>>>> "Alan" == Alan Silver <asilver@hbs.edu> 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
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic