From owner-freebsd-stable@FreeBSD.ORG Thu Jul 12 06:18:12 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C897116A400 for ; Thu, 12 Jul 2007 06:18:12 +0000 (UTC) (envelope-from bri@sonicboom.org) Received: from entwistle.sonicboom.org (entwistle.sonicboom.org [66.93.34.170]) by mx1.freebsd.org (Postfix) with ESMTP id A818F13C45E for ; Thu, 12 Jul 2007 06:18:12 +0000 (UTC) (envelope-from bri@sonicboom.org) Received: from [192.168.0.10] (p3.sonicboom.org [66.93.34.235]) by entwistle.sonicboom.org (8.14.1/8.14.1) with ESMTP id l6C5gTFG040211 for ; Wed, 11 Jul 2007 22:42:29 -0700 (PDT) (envelope-from bri@sonicboom.org) Message-ID: <4695BF44.6090507@sonicboom.org> Date: Wed, 11 Jul 2007 22:42:28 -0700 From: Brian User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4695BB25.9040706@FreeBSD.org> In-Reply-To: <4695BB25.9040706@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: rc.local equivalent X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 06:18:12 -0000 Doug Barton wrote: > Morgan Reed wrote: > > >> Given that rc.local is now deprecated, >> > > Where did you get that idea? > > man rc.local on a freebsd 7 box says The rc utility is the command script which controls the automatic boot process after being called by init(8). The rc.local script contains com- mands which are pertinent only to a specific site. Typically, the /usr/local/etc/rc.d/ mechanism is used instead of rc.local these days but if you want to use rc.local, it is still supported. In this case, it should source /etc/rc.conf and contain additional custom startup code for your system. The best way to handle rc.local, however, is to separate it out into rc.d/ style scripts and place them under /usr/local/etc/rc.d/. The rc.conf file contains the global system configuration information referenced by the startup scripts, while rc.conf.local contains the local system configuration. See rc.conf(5) for more information. The rc.d/ directories contain scripts which will be automatically exe- cuted at boot time and shutdown time. So, rc.local, though not current is still supported. Brian