Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 10:12:39 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        slave-mike <slave-mike@slavepix.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Feature Request: /usr/local/etc/rc.conf support
Message-ID:  <20040220100956.V60703@carver.gumbysoft.com>
In-Reply-To: <001401c3f732$93405c40$c700a8c0@lxfvm8jmsx9muk3>
References:  <87u11p8sl6.fsf@gray.impulse.net> <20040218180829.B43291@carver.gumbysoft.com> <001401c3f732$93405c40$c700a8c0@lxfvm8jmsx9muk3>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <dwhite@gumbysoft.com>
> To: "Ted Cabeen" <secabeen@pobox.com>
> Cc: <freebsd-current@freebsd.org>; <freebsd-ports@freebsd.org>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220100956.V60703>