From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 17:22:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A28C816A419 for ; Wed, 6 Feb 2008 17:22:59 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-1.mail.uk.tiscali.com (mk-outboundfilter-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.freebsd.org (Postfix) with ESMTP id 254F413C459 for ; Wed, 6 Feb 2008 17:22:58 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 35227588/mk-outboundfilter-1.mail.uk.tiscali.com/PIPEX/$MX-ACCEPTED/pipex-infrastructure/62.241.163.7 X-SBRS: None X-RemoteIP: 62.241.163.7 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CANx7qUc+8aMH/2dsb2JhbACtYQ X-IP-Direction: IN Received: from blaster.systems.pipex.net ([62.241.163.7]) by smtp.pipex.tiscali.co.uk with ESMTP; 06 Feb 2008 17:22:58 +0000 Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by blaster.systems.pipex.net (Postfix) with ESMTP id 4C606E000069; Wed, 6 Feb 2008 17:22:57 +0000 (GMT) Message-ID: <47A9ECEC.5040107@dial.pipex.com> Date: Wed, 06 Feb 2008 17:22:52 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com> <20080206152833.U3736@wojtek.tensor.gdynia.pl> <20080206154317.GC18883@gizmo.acns.msu.edu> <20080206174632.B4330@wojtek.tensor.gdynia.pl> In-Reply-To: <20080206174632.B4330@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: script to be executed on system startup. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 17:22:59 -0000 Wojciech Puchar wrote: >> >> No, don't add anything to rc.local. > > > no because of? The manual page. > 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/. It's there for backwards compatibility and you'll be bit when it goes away. --Alex