From owner-freebsd-ports@FreeBSD.ORG Tue Feb 17 15:02:11 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 CF1F616A4CF for ; Tue, 17 Feb 2004 15:02:11 -0800 (PST) Received: from mail.westbend.net (mail.westbend.net [65.114.87.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8590643D1F for ; Tue, 17 Feb 2004 15:02:11 -0800 (PST) (envelope-from hetzelsw@westbend.net) Received: from SCOT (lclhw@scott.hnet.net [38.119.190.206]) by mail.westbend.net (8.12.10/8.12.10) with SMTP id i1HMxoj8026283; Tue, 17 Feb 2004 17:01:53 -0600 (CST) (envelope-from hetzelsw@westbend.net) Message-ID: <020901c3f5aa$10ca1370$cebe7726@westbend.net> From: "Scot W. Hetzel" To: "Thomas-Martin Seck" , "Ted Cabeen" References: <20040217193127.5655.qmail@laurel.tmseck.homedns.org><87vfm5777l.fsf@gray.impulse.net><20040217212137.GD719@laurel.tmseck.homedns.org> <87znbh4cii.fsf@gray.impulse.net> Date: Tue, 17 Feb 2004 16:31:11 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Milter: Spamilter X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=0.0 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, USER_AGENT_OE version=2.43 cc: freebsd-ports@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: Tue, 17 Feb 2004 23:02:12 -0000 From: "Ted Cabeen" > The system securelevel is set in the /etc/rc.conf file. To prevent an > attacker from changing the securelevel defined there and then > rebooting the machine, I set the /etc/rc.conf file to be immutable. > However, I'd like to be able to install new ports and have them start > automatically without having to boot to single-user to modify rc.conf > (or any other configuration file equivalent to rc.conf). > We don't need a /usr/local/etc/rc.conf file to be used by ports only. Instead rc.subr has the ability to load a file for each script from /etc/rc.conf.d. You will need to create the /etc/rc.conf.d directory, and then create individual files for the script that that you want to change the settings for. These files are named after the $name variable in each script. Scot