From owner-freebsd-questions@FreeBSD.ORG Sat Jul 17 00:12:33 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 F40EE16A4CE for ; Sat, 17 Jul 2004 00:12:32 +0000 (GMT) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD0543D39 for ; Sat, 17 Jul 2004 00:12:32 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.11/8.12.11) with ESMTP id i6H0CWMW081706; Fri, 16 Jul 2004 18:12:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.11/8.12.11/Submit) with ESMTP id i6H0CWh9081703; Fri, 16 Jul 2004 18:12:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 16 Jul 2004 18:12:32 -0600 (MDT) From: Warren Block To: Paul Schmehl In-Reply-To: <7CC06F9188A1E94CE692DDCF@utd49554.utdallas.edu> Message-ID: <20040716180946.I81658@wonkity.com> References: <7CC06F9188A1E94CE692DDCF@utd49554.utdallas.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.3 (wonkity.com [127.0.0.1]); Fri, 16 Jul 2004 18:12:32 -0600 (MDT) cc: freebsd-questions@freebsd.org Subject: Re: rc script fails to start on boot 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: Sat, 17 Jul 2004 00:12:33 -0000 On Fri, 16 Jul 2004, Paul Schmehl wrote: > I've written a very simple rc script, using the new format, to control a > process. The script works fine from the commandline. > (start|stop|restart|rcvar|status|etc all work fine.) But the script fails to > start up the process on reboot. > > Here's the script, without any of the comments: > > bash-2.05b# grep -v "#" /usr/local/etc/rc.d/extractor.sh > > #!/bin/sh > # $Id$ > > # PROVIDE: extractor > # BEFORE: LOGIN > # KEYWORD: FreeBSD > > . /usr/local/etc/rc.subr > > name="extractor" > rcvar=`set_rcvar` > > command="/usr/local/bin/${name}" > > load_rc_config $name > run_rc_command "$1" Have you added extractor_enable="YES" to /etc/rc.conf? The newer rcng stuff you're using will need that. -Warren Block * Rapid City, South Dakota USA