From owner-freebsd-questions@FreeBSD.ORG Wed May 12 16:02:17 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 78E7716A4CE for ; Wed, 12 May 2004 16:02:17 -0700 (PDT) Received: from hobbiton.shire.net (hobbiton.shire.net [206.71.64.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDC7943D60 for ; Wed, 12 May 2004 16:02:16 -0700 (PDT) (envelope-from chad@shire.net) Received: from [67.161.247.57] (helo=[192.168.99.66]) by hobbiton.shire.net with asmtp (TLSv1:RC4-SHA:128) (Exim 4.10) id 1BO2jw-000KuT-00 for freebsd-questions@freebsd.org; Wed, 12 May 2004 17:02:16 -0600 Mime-Version: 1.0 (Apple Message framework v613) Message-Id: <67797B99-A468-11D8-A0B4-003065A70D30@shire.net> To: freebsd-questions@freebsd.org Questions From: "Chad Leigh -- Shire.Net LLC" Date: Wed, 12 May 2004 17:02:12 -0600 X-Mailer: Apple Mail (2.613) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hobbiton.shire.net X-Spam-Status: No, hits=-1.5 required=5.0 tests=BAYES_01 autolearn=no version=2.63 X-Spam-Level: Subject: 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:02:17 -0000 Hi In the man pages for rc it says: "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/." 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 myscript_enable="YES" in /etc/rc.conf.local I can run my script by hand and it works. But when I boot it does not even try and run my script. How do you get rc.d style scripts in /usr/local/etc/rc.d/ to run at boot time? Thanks Chad