From owner-freebsd-questions@FreeBSD.ORG Sat Jul 5 09:07:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DDB337B401 for ; Sat, 5 Jul 2003 09:07:38 -0700 (PDT) Received: from mta2.adelphia.net (mta2.adelphia.net [64.8.50.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E3F944011 for ; Sat, 5 Jul 2003 09:07:37 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta2.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030705160736.GOFY1359.mta2.adelphia.net@potentialtech.com>; Sat, 5 Jul 2003 12:07:36 -0400 Message-ID: <3F06F7C8.2030304@potentialtech.com> Date: Sat, 05 Jul 2003 12:07:36 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ACiD References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD Startup Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 16:07:38 -0000 ACiD wrote: > All, > > I have been working a lot with Free 5.0. Because of a few issues, I had to > back down to 4.8-RELEASE. Now I am having problems understanding the rc > loading process. On 5.0 its easier (what I am used to from the Solaris > days, etc.) The file system has an /etc/rc.d directory that loads separate > scripts on boot. My local apps are also loaded from /usr/local/etc/rc.d. > This, for me, was a convenient way to modify say syslogd and change it to > listen for incoming network connections (-r). > > But in 4.8 there is no rc.d directory. I am having trouble understanding > how everything works here. the /etc/rc file seems to load everything > (most - at least syslog) referencing a "syslogd_flags" variable. I found > that placing this variable in the rc.conf file was reference (google > search), but it did not work for me. I don't see why syslogd_flags wouldn't work. You might want to provide more details, as that is the right way to do it in 4.x. The general method that 4.x uses is this: The startup scripts use the configuration in /etc/defaults/rc.conf and then override those defaults with the values in /etc/rc.conf. Any config changes you want to make should be done in /etc/rc.conf. Reading the /etc/defaults/rc.conf file will help you to see all the options available for /etc/rc.conf, and the man page for rc.conf will explain things. > Anyhow, would someone mind taking the time and explain the rc load process > on 4.8 to me and why its different in 5 ? Also, am I correct in saying that > the 5.x tree will (remain) change to using the rc.d directory structure that > I like so much ??? Remember that 5 is new technology. The rc method you see in 5 is the new method that is an improvement on the previous method used in 4. -- Bill Moran Potential Technologies http://www.potentialtech.com