From owner-freebsd-newbies@FreeBSD.ORG Sun Mar 13 05:34:03 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 0CFE116A4CE for ; Sun, 13 Mar 2005 05:34:03 +0000 (GMT) Received: from smtp.cdf.toronto.edu (smtp.cdf.toronto.edu [128.100.31.106]) by mx1.FreeBSD.org (Postfix) with SMTP id 485A843D48 for ; Sun, 13 Mar 2005 05:34:02 +0000 (GMT) (envelope-from c3cookja@cdf.toronto.edu) Received: (qmail 32334 invoked from network); 13 Mar 2005 05:34:01 -0000 Received: from skywolf.cdf.toronto.edu (qmailr@128.100.31.202) by penguin.cdf.toronto.edu with SMTP; 13 Mar 2005 05:34:01 -0000 Received: (qmail 2838 invoked by uid 4952); 13 Mar 2005 05:34:01 -0000 Date: 13 Mar 2005 00:34:01 -0500 Message-ID: <20050313053401.GA2459@skywolf.cdf.toronto.edu> From: james.cook@utoronto.ca To: "Ronny Hippler" References: <4233A236.8080908@sancho2k.net> <20050313024714.0021F43D3F@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050313024714.0021F43D3F@mx1.FreeBSD.org> User-Agent: Mutt/1.5.6i 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 05:34:03 -0000 On Sat, Mar 12, 2005 at 09:46:39PM -0500, Ronny Hippler wrote: > On Sat, 12 Mar 2005 19:15:18 -0700, Sancho2k.net Lists wrote: > > >Having said that, I can't see where sshd_enable is used anywhere on my > >system, although OpenSSH starts at boot... > > after ploding through the files in etc I have come to the conclusion > that init (which is run @ boot) starts many scripts in there named > rc.????. ssh is started by rc.network if I am guessing correctly. I think init just runs /etc/rc on bootup; I'm not sure, but that's certainly one of the things it does. In any case, /etc/rc then runs each of the scripts in /etc/rc.d: files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null` for _rc_elem in ${files}; do run_rc_script ${_rc_elem} ${_boot} done It seems that the scripts in /etc/rc.d then look at the various configuration files. For example, /etc/rc.d/sshd will only actually start sshd if the sshd_enable option is set in /etc/rc.conf. rc.conf doesn't do anything itself; it merely contains options that other scripts read. - James Cook james.cook@utoronto.ca