Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 23:41:16 -0500
From:      Paul Schmehl <pauls@utdallas.edu>
To:        freebsd-rc@freebsd.org
Subject:   rc script won't start daemon on reboot
Message-ID:  <2147483647.1090366876@[192.168.2.102]>

next in thread | raw e-mail | index | archive | help
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@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@utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2147483647.1090366876>