From owner-freebsd-questions@FreeBSD.ORG Thu Aug 20 23:14:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A97681065697 for ; Thu, 20 Aug 2009 23:14:48 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 787368FC69 for ; Thu, 20 Aug 2009 23:14:48 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 22E507E853; Thu, 20 Aug 2009 15:14:47 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Thu, 20 Aug 2009 15:14:44 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <9e20d71e0908180253x4a11114cxc3e2c4af8798878@mail.gmail.com> <20090818150008.GC77498@dan.emsphone.com> In-Reply-To: <20090818150008.GC77498@dan.emsphone.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908201514.45706.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Dan Nelson , Artis Caune Subject: Re: shell power in 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: Thu, 20 Aug 2009 23:14:48 -0000 On Tuesday 18 August 2009 07:00:08 Dan Nelson wrote: > In the last episode (Aug 18), Artis Caune said: > > Is there any reason of not using shell variables in rc.conf? > > I want to tune rc.conf for easy editing and administration. Take for > > example jail_list or cloned_interfaces with 10+ entries: > > Remember that every startup script sources rc.conf, sometimes very early or > late in the startup/shutdown sequence, so just make sure you don't echo > anything to stdout/stderr or try to run commands that might be on > filesystems that aren't mounted yet, and you should be fine. In this particular example, you're fine. In general, you should also take care that /etc/defaults/rc.conf is read before /etc/rc.conf and may set values for variables you have not specified. Defaults can also change between releases, so one should inspect /etc/defaults/rc.conf during mergemaster stage with a microscope. -- Mel