rc script won't start daemon on reboot
Paul Schmehl
pauls at utdallas.edu
Tue Jul 20 21:41:18 PDT 2004
I've tried the general list without success. I'm hoping this list can help
me.
I've written a very simple rc script using the new format and rc.subr. The
script works fine from the commandline
(start|stop|restart|rcvar|status|poll), but when the server is rebooted,
the script fails to start the daemon. There are no errors in
/var/log/messages or in the extractor.log file, and the daemon is too
simplistically written to have a debug or verbose switch. Any ideas what
the problem could be?
Here's the necessary details:
bash-2.05b# uname -v
FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003
root at freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC
bash-2.05b# cat /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"
bash-2.05b# ls -lsa /usr/local/etc/rc.d/extractor.sh
2 -rwxr-x--- 1 root wheel 1154 Jul 17 01:07
/usr/local/etc/rc.d/extractor.sh
bash-2.05b# /usr/local/etc/rc.d/extractor.sh rcvar
# extractor
$extractor_enable=YES
Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
More information about the freebsd-rc
mailing list