rc script fails to start on boot

Paul Schmehl pauls at utdallas.edu
Fri Jul 16 14:28:37 PDT 2004


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 at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/


More information about the freebsd-questions mailing list