From owner-freebsd-ports@FreeBSD.ORG Tue Feb 17 14:34:36 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 2AA9316A4CE; Tue, 17 Feb 2004 14:34:36 -0800 (PST) Received: from gray.impulse.net (gray.impulse.net [207.154.64.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21AD043D39; Tue, 17 Feb 2004 14:34:36 -0800 (PST) (envelope-from ted@impulse.net) Received: by gray.impulse.net (Postfix, from userid 1000) id E602453C; Tue, 17 Feb 2004 14:34:35 -0800 (PST) To: "Simon L. Nielsen" References: <20040217193127.5655.qmail@laurel.tmseck.homedns.org> <87vfm5777l.fsf@gray.impulse.net> <20040217212137.GD719@laurel.tmseck.homedns.org> <87znbh4cii.fsf@gray.impulse.net> <20040217222807.GA771@arthur.nitro.dk> From: Ted Cabeen Organization: Impulse Internet Services Date: Tue, 17 Feb 2004 14:34:35 -0800 In-Reply-To: <20040217222807.GA771@arthur.nitro.dk> (Simon L. Nielsen's message of "Tue, 17 Feb 2004 23:28:08 +0100") Message-ID: <87r7wt49ok.fsf@gray.impulse.net> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Reasonable Discussion, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-ports@freebsd.org cc: Thomas-Martin Seck 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 22:34:36 -0000 "Simon L. Nielsen" writes: > On 2004.02.17 13:33:25 -0800, Ted Cabeen wrote: >> 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). > > There is also the option of using the (yet) undocumented in FreeBSD [1] > /etc/rc.conf.d/service files. E.g. to enable rsyncd you would have > /etc/rc.conf.d/rsyncd with the variable rsyncd_enable="YES" (Note: I > haven't tested this, but I'm rather sure I'm reading the source and > NetBSD manual page corrrectly). Would that file only be parsed when starting a service with that name, or would it be parsed at the beginning of the rc run? -- Ted Cabeen http://www.pobox.com/~secabeen ted@impulse.net Check Website or Keyserver for PGP/GPG Key BA0349D2 secabeen@pobox.com "I have taken all knowledge to be my province." -F. Bacon secabeen@cabeen.org "Human kind cannot bear very much reality."-T.S.Eliot cabeen@netcom.com