From owner-freebsd-ports@FreeBSD.ORG Fri Feb 20 10:12:40 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BF6B16A4CF; Fri, 20 Feb 2004 10:12:40 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14B6E43D1F; Fri, 20 Feb 2004 10:12:40 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 0910772DBF; Fri, 20 Feb 2004 10:12:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 06B5C72DB5; Fri, 20 Feb 2004 10:12:40 -0800 (PST) Date: Fri, 20 Feb 2004 10:12:39 -0800 (PST) From: Doug White To: slave-mike In-Reply-To: <001401c3f732$93405c40$c700a8c0@lxfvm8jmsx9muk3> Message-ID: <20040220100956.V60703@carver.gumbysoft.com> References: <87u11p8sl6.fsf@gray.impulse.net> <20040218180829.B43291@carver.gumbysoft.com> <001401c3f732$93405c40$c700a8c0@lxfvm8jmsx9muk3> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Ted Cabeen cc: freebsd-ports@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Feature Request: /usr/local/etc/rc.conf support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 18:12:40 -0000 On Thu, 19 Feb 2004, slave-mike wrote: > as /et/rc.conf is sourced as a shell script archive could one > put something like ... > > if [ -x /usr/local/etc/rc..conf ]; then > . /usr/local/etc/rc.conf > fi > > in /etc/rc.conf ??? NO. Do NOT do this. You can cause an infinte inclusion loop. Use the 'rc_conf_files' option to list additional files. rc_conf_files="/usr/local/etc/rc.conf" Not everything that reads rc.conf is a shell script. As noted, though, this doesn't sovle the overwriting of precious options, like securelevel. > > > ----- Original Message ----- > From: "Doug White" > To: "Ted Cabeen" > Cc: ; > Sent: Wednesday, February 18, 2004 9:10 PM > Subject: Re: Feature Request: /usr/local/etc/rc.conf support > > > > On Tue, 17 Feb 2004, Ted Cabeen wrote: > > > > > With the ever-increasing number of ports that use rc.conf variables to > > > regulate their startup, would it be possible to add support for a > > > /usr/local/etc/rc.conf file in FreeBSD? The constant changes to the > > > rc.conf file have been playing havoc with my centralized management > > > systems, and it makes it harder and harder to keep the /etc/rc.conf > > > file set immutable (which I like to do on critical servers, to prevent > > > the securelevel from changing). > > > > I keep wanting to suggest using the already-existent /etc/rc.conf.local, > > but now that you mention that you want to lock out changes to stuff like > > securelevel, it makes more sense why you'd want to split it off. > > > > -- > > Doug White | FreeBSD: The Power to Serve > > dwhite@gumbysoft.com | www.FreeBSD.org > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org