From owner-freebsd-questions Thu Oct 18 0: 0:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from localhost.meer.net (pm3a-5.mv.meer.net [209.157.137.5]) by hub.freebsd.org (Postfix) with ESMTP id 7CE8737B405; Thu, 18 Oct 2001 00:00:33 -0700 (PDT) Received: (from alan@localhost) by localhost.meer.net (8.11.6/8.11.3) id f9I70rf03272; Thu, 18 Oct 2001 00:00:53 -0700 (PDT) (envelope-from alan) Date: Thu, 18 Oct 2001 00:00:53 -0700 (PDT) From: Alan Char Message-Id: <200110180700.f9I70rf03272@localhost.meer.net> To: edwin@mavetju.org Subject: Re: upgrading and /etc/rc Cc: questions@freebsd.org, support@freebsd.org In-Reply-To: <20011018155053.Y2865@k7.mavetju.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. Thanks for the flip response. My /etc/rc.conf has apparently been inherited from older versions of FreeBSD since the installation process by default does not overwrite it (except, recently, to sort its contents). I have never edited /etc/rc.conf. At any rate, even for comments, this is a really bad idea. Sorting shell scripts, even if they are just settings, seems like a bad policy decision in general. --Alan Edwin Groothuis wrote: > /etc/rc.conf should only be a configuration file, not a real script. > /etc/rc.local is run via /etc/rc. man rc.conf says: > > The purpose of rc.conf is not to run commands or perform system startup > actions directly. Instead, it is included by the various generic startup > scripts in /etc which conditionalize their internal actions according to > the settings found there. > > So please don't :-) > > Edwin On Wed, Oct 17, 2001 at 10:01:44PM -0700, Alan Char wrote: > Hi. I upgraded from 4.3 to 4.4 today, and somehow in the process, > the /etc/rc.conf file got sorted. This also happened when I upgraded > from 4.2 to 4.3. Unfortunately, /etc/rc.conf has a little if-block > at the end to run /etc/rc.local, and after it sorting it creates a > syntax error. Doesn't do much for making comments useful, either. > Is there a way to turn off this "feature"? Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message