From owner-freebsd-current Fri Feb 21 8:16:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 423CD37B401 for ; Fri, 21 Feb 2003 08:16:20 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AAAD43FBD for ; Fri, 21 Feb 2003 08:16:19 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id 031439C5F; Fri, 21 Feb 2003 11:03:51 -0500 (EST) Date: Fri, 21 Feb 2003 11:03:52 -0500 From: Mike Barcroft To: Julian Elischer Cc: FreeBSD current users Subject: Re: config files and includes. Message-ID: <20030221110351.B3649@espresso.bsdmike.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from julian@elischer.org on Thu, Feb 20, 2003 at 06:39:33PM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer 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