From owner-freebsd-newbies@FreeBSD.ORG Sun Mar 13 02:15:21 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E94E616A4CE for ; Sun, 13 Mar 2005 02:15:21 +0000 (GMT) Received: from mail.sancho2k.net (spruell.dsl.xmission.com [166.70.24.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EDD943D31 for ; Sun, 13 Mar 2005 02:15:20 +0000 (GMT) (envelope-from lists@sancho2k.net) Received: (qmail 23764 invoked by uid 1011); 13 Mar 2005 02:15:19 -0000 Received: from 10.0.1.4 by molodetz.sancho2k.net (envelope-from , uid 1004) with qmail-scanner-1.24 (clamdscan: 0.80/680. spamassassin: 2.64. Clear:RC:1(10.0.1.4):. Processed in 0.09828 secs); 13 Mar 2005 02:15:19 -0000 Received: from unknown (HELO [10.0.1.4]) ([10.0.1.4]) (envelope-sender ) by mail.sancho2k.net (qmail-ldap-1.03) with SMTP for ; 13 Mar 2005 02:15:18 -0000 Message-ID: <4233A236.8080908@sancho2k.net> Date: Sat, 12 Mar 2005 19:15:18 -0700 From: "Sancho2k.net Lists" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20050122 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ola Theander References: <20050313014936.TXVL23781.mxfep02.bredband.com@c0003> In-Reply-To: <20050313014936.TXVL23781.mxfep02.bredband.com@c0003> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-newbies@freebsd.org Subject: Re: Confused about connection between an option in rc.conf and the associated action? X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 02:15:22 -0000 Ola Theander wrote: > Dear subscribers > > I'm slightly confused about enabling an option in rc.conf and the associated > action? E.g. say that I enable gateway_enable="YES" or maybe > dhcpd_enable="YES", how does FreeBSD associate this simple line to the > associated action? I've had a theory that adding e.g. test_enable="YES" to > rc.conf would trigger the execution of the file /etc/rc.d/test.sh at boot > time but it seems like this isn't how it's done. A lot of the time these are connected to scripts in /usr/local/etc/rc.d/ for ports you've installed, a lot of the time they are just handled natively by the system's supplied rc scripts. For example you can see the gateway_enable variable used in /etc/rc.d/routing. Having said that, I can't see where sshd_enable is used anywhere on my system, although OpenSSH starts at boot... DS