From owner-freebsd-questions@FreeBSD.ORG Fri Jul 16 21:28:37 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 4F44B16A4CE for ; Fri, 16 Jul 2004 21:28:37 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CE9E43D45 for ; Fri, 16 Jul 2004 21:28:37 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id EA24B388C33 for ; Fri, 16 Jul 2004 16:28:35 -0500 (CDT) Date: Fri, 16 Jul 2004 16:28:33 -0500 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: <7CC06F9188A1E94CE692DDCF@utd49554.utdallas.edu> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Fri, 16 Jul 2004 21:28:37 -0000 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. I've googled til I'm blue in the face, but I can't figure out what is wrong with the script. I'm sure it's something simple that I've overlooked, so I'm hoping putting more eyes on the problem will solve it quickly. 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" Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/