From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 16:13:36 2007 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 BFF7F16A420 for ; Fri, 24 Aug 2007 16:13:36 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from galaxy.systems.pipex.net (galaxy.systems.pipex.net [62.241.162.31]) by mx1.freebsd.org (Postfix) with ESMTP id 8504813C45B for ; Fri, 24 Aug 2007 16:13:36 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by galaxy.systems.pipex.net (Postfix) with ESMTP id 738D1E00038F; Fri, 24 Aug 2007 17:13:32 +0100 (BST) Message-ID: <46CF03AB.5030005@dial.pipex.com> Date: Fri, 24 Aug 2007 17:13:31 +0100 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: Zbigniew Szalbot References: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com> <223ba4b925eeff50b090a8bd14840467@szalbot.homedns.org> In-Reply-To: <223ba4b925eeff50b090a8bd14840467@szalbot.homedns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Freebsd questions Subject: Re: load script at bootup 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: Fri, 24 Aug 2007 16:13:36 -0000 Zbigniew Szalbot wrote: >I also have a script that I want to start at boot time and I simply >symlinked it to /usr/local/etc/rc.d/ >It starts fine but now I wonder if maybe this is not the proper way to >start up scripts? > > =20 > I don't think there's anything wrong with that solution, and I myself=20 prefer it. (I symlink from a CVSed area). rc.d is very flexible and=20 everything that happens at boot time is all in one (or two :-)) places. = And you can run something every time the machine is shut down as well as = when it's rebooted. Can't do that with cron :-) =A30.02 --Alex