From owner-freebsd-questions@FreeBSD.ORG Tue Jun 14 19:40:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AFCF416A41C for ; Tue, 14 Jun 2005 19:40:01 +0000 (GMT) (envelope-from jmartin37@speakeasy.net) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74CD443D48 for ; Tue, 14 Jun 2005 19:40:01 +0000 (GMT) (envelope-from jmartin37@speakeasy.net) Received: (qmail 18343 invoked from network); 14 Jun 2005 19:40:01 -0000 Received: from adsl-211-141-154.asm.bellsouth.net (HELO [192.168.2.101]) (moonlightcheese@[68.211.141.154]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 14 Jun 2005 19:40:01 -0000 Message-ID: <42AF328D.8090502@speakeasy.net> Date: Tue, 14 Jun 2005 15:39:57 -0400 From: JM User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kirk Strauser References: <42AF0EDD.4090100@speakeasy.net> <200506141342.07886.kirk@strauser.com> In-Reply-To: <200506141342.07886.kirk@strauser.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org, freebsd-questions@freebsd.org Subject: Re: rcNG script problems 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: Tue, 14 Jun 2005 19:40:01 -0000 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.