From owner-freebsd-questions@FreeBSD.ORG Wed Aug 30 09:46:33 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E918B16A4DE for ; Wed, 30 Aug 2006 09:46:33 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A36F543DDB for ; Wed, 30 Aug 2006 09:46:05 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.144] (helo=anti-virus03-07) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1GIMdy-00007p-Gs; Wed, 30 Aug 2006 10:45:58 +0100 Received: from [82.41.35.166] (helo=[192.168.0.2]) by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52) id 1GIMdx-0002il-Se; Wed, 30 Aug 2006 10:45:57 +0100 Message-ID: <44F55E55.4090401@dial.pipex.com> Date: Wed, 30 Aug 2006 10:45:57 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: "Dan Mahoney, System Admin" References: <20060830033859.R53222@prime.gushi.org> In-Reply-To: <20060830033859.R53222@prime.gushi.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: include format for /etc/rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 09:46:34 -0000 Dan Mahoney, System Admin wrote: > Hey all, > > Are there any supported formats for INCLUDES in /etc/rc.conf such that > I can drop default configs into /etc/rc.conf and then have files in a > certain directory (ala includerc) override them? Basically, I'd like > to do mass-updates of several dozen machines' configs normally found > in /etc/rc.conf, but then have per-machine configs (like hostnames) > elsewhere. rc.conf is just a shell script so you can "include" a file like: . /path/to/include but make sure it exists on every host. It could easily be . /etc/rc.conf.`hostname -s` as long as you don't have a host called local :-) There is also rc.conf.local where you could put machine specific and leave rc.conf for your generic defaults. Not clear to me if rc.conf.local is meant to last though as it is described as "historic". --Alex