From owner-freebsd-questions@FreeBSD.ORG Wed May 12 16:06:42 2004 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 8EA9E16A4CE for ; Wed, 12 May 2004 16:06:42 -0700 (PDT) Received: from gw.visp.com.au (gw.visp.com.au [202.6.158.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BABA943D2F for ; Wed, 12 May 2004 16:06:41 -0700 (PDT) (envelope-from tim@spyderweb.com.au) Received: from bofh.spyderweb.com.au (202-6-150-37.ip.visp.com.au [202.6.150.37] (may be forged)) by gw.visp.com.au (8.12.8p2/8.12.8) with ESMTP id i4CN6hkH089484; Thu, 13 May 2004 08:36:43 +0930 (CST) (envelope-from tim@spyderweb.com.au) Received: from spyderweb.com.au (localhost [127.0.0.1]) i4CN6dic042205; Thu, 13 May 2004 08:36:40 +0930 (CST) (envelope-from tim@spyderweb.com.au) Date: Thu, 13 May 2004 08:36:39 +0930 From: Tim Aslat To: "Chad Leigh -- Shire.Net LLC" Message-Id: <20040513083639.512f9908@bofh.spyderweb.com.au> In-Reply-To: <67797B99-A468-11D8-A0B4-003065A70D30@shire.net> References: <67797B99-A468-11D8-A0B4-003065A70D30@shire.net> Organization: Spyderweb Consulting X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d 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: Wed, 12 May 2004 23:06:42 -0000 In the immortal words of "Chad Leigh -- Shire.Net LLC" ... > "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/." That's right > So I created an rc.d style script for my own service and stuck it in > /usr/local/etc/rc.d/. It does not have a .sh on the end as it should > run in a subshell as detailed in the rc man page. I also added There's your problem, all scripts in rc.d must have a .sh extension or they will be ignored (unless included from another script/program) rename to myscript.sh and it will work Cheers Tim -- Tim Aslat Spyderweb Consulting http://www.spyderweb.com.au Phone: +61 0401088479