From owner-freebsd-rc@FreeBSD.ORG Wed Jul 21 04:41:18 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A00D16A4CE for ; Wed, 21 Jul 2004 04:41:18 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3918643D1F for ; Wed, 21 Jul 2004 04:41:18 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.102] (adsl-68-90-206-81.dsl.rcsntx.swbell.net [68.90.206.81]) by smtp1.utdallas.edu (Postfix) with ESMTP id 94116388D1A for ; Tue, 20 Jul 2004 23:41:17 -0500 (CDT) Date: Tue, 20 Jul 2004 23:41:16 -0500 From: Paul Schmehl To: freebsd-rc@freebsd.org Message-ID: <2147483647.1090366876@[192.168.2.102]> X-Mailer: Mulberry/3.0.3 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: rc script won't start daemon on reboot X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 04:41:18 -0000 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