Date: Fri, 16 Jul 2004 18:12:32 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Paul Schmehl <pauls@utdallas.edu> Cc: freebsd-questions@freebsd.org Subject: Re: rc script fails to start on boot Message-ID: <20040716180946.I81658@wonkity.com> In-Reply-To: <7CC06F9188A1E94CE692DDCF@utd49554.utdallas.edu> References: <7CC06F9188A1E94CE692DDCF@utd49554.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040716180946.I81658>