Date: Fri, 21 Feb 2003 11:03:52 -0500 From: Mike Barcroft <mike@FreeBSD.org> To: Julian Elischer <julian@elischer.org> Cc: FreeBSD current users <current@FreeBSD.ORG> Subject: Re: config files and includes. Message-ID: <20030221110351.B3649@espresso.bsdmike.org> In-Reply-To: <Pine.BSF.4.21.0302201824180.43932-100000@InterJet.elischer.org>; from julian@elischer.org on Thu, Feb 20, 2003 at 06:39:33PM -0800 References: <Pine.BSF.4.21.0302201824180.43932-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer <julian@elischer.org> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030221110351.B3649>