Julian Elischer <[EMAIL PROTECTED]> writes:
> I have just gone through the process of upgrading or installing several
> hundred machines, and Thst includes altering or editing many config
> files in /etc. I like the way that rc.conf
> is handled, in that defaults/rc.comf can be updated and only the
> local changes live in r.conf. I wish that more files had this
> capability.
> For example syslogd.conf or newsyslog.conf are updated between releases
> but they are also prime candidates for local additions.
> What would be really cool is if more config files could
> do 'includes' so that you could have a syslogd.local.conf
> wher eall your local entries could be. In addition you could make it
> look in /usr/local/etc/syslogd.conf for loging requirments for
> packages.

Why not making it simple on yourself and use CPP.

/etc/defaults/syslog.global.conf:
#ifndef SECURITY
security.*      /nfs/log/security
#endif

#ifndef MAIL
mail.info       /nfs/log/maillog
#endif

/etc/syslog.local.conf:
#define SECURITY
security.*              /var/log/security

#include "/etc/defaults/syslog.global.conf"

/etc/rc.d/syslogd (or similar):
+# Preprocess syslog.conf
+cpp /etc/syslog.local.conf -o /etc/syslog.conf
+

Unix has *so* many text processing tools, I don't see why we need to
bloat daemons with this stuff.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to