From owner-freebsd-rc@FreeBSD.ORG Tue Jun 14 19:46:38 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7433316A41C; Tue, 14 Jun 2005 19:46:38 +0000 (GMT) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37EB543D1D; Tue, 14 Jun 2005 19:46:38 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1DiHMq-000LhY-Mn; Tue, 14 Jun 2005 13:46:37 -0600 In-Reply-To: <42AF328D.8090502@speakeasy.net> References: <42AF0EDD.4090100@speakeasy.net> <200506141342.07886.kirk@strauser.com> <42AF328D.8090502@speakeasy.net> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Tue, 14 Jun 2005 13:46:35 -0600 To: JM X-Mailer: Apple Mail (2.730) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on hobbiton.shire.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50, GREYLIST_ISWHITE autolearn=disabled version=3.0.3 X-SA-Exim-Version: 4.2 (built Mon May 30 00:43:02 MDT 2005) X-SA-Exim-Scanned: Yes (on hobbiton.shire.net) Cc: Kirk Strauser , freebsd-rc@freebsd.org, freebsd-questions@freebsd.org Subject: Re: rcNG script problems X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 19:46:38 -0000 On Jun 14, 2005, at 1:39 PM, JM wrote: > Kirk Strauser wrote: > > >> On Tuesday 14 June 2005 12:07, JM wrote: >> >> >>> i've written an rcNG script but i'm having some issues. >>> >>> >> >> Step one: set rc_debug="YES" in /etc/rc.conf to see what's >> actually happening when you attempt to run your script. That >> seems to uncover about 95% of the problems I've had. >> >> > turned on the option rc_debug="YES" and ran 'dmesg -a'... the > script doesn't even show up in the list anywhere. are we not > supposed to be able to write custom rcNG scripts? is there > something i'm overlooking where i need to register httpd_start in > the rc stuff? here's my newbie impression of how rc works: > - rc i run by init > - rc runs rcorder on all script directories. > - rc reads rc.conf and runs all scripts found by rcorder > rcorder recognizes the script i wrote without any errors... yet > when i boot the system, there is no "checkyesno" for httpd_start. > there's nothing that references the script at all... WHY? >.< > > why did FreeBSD have to adopt this standard anyhow? it seems > unnecessarily complicated to write custom scripts now. Where does your script live? You can use rcNG style scripts in /usr/ local/etc but they must end in .sh and are done in lexographic order without the rcorder and stuff (unless you write your own ueber- script to do it) I battled this for a long while before I figured out the /usr/local/ etc does not get full rcNG support Chad