From owner-freebsd-questions@FreeBSD.ORG Sat Dec 31 05:06:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D56116A41F for ; Sat, 31 Dec 2005 05:06:09 +0000 (GMT) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D76D43D5D for ; Sat, 31 Dec 2005 05:06:07 +0000 (GMT) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (zoraida.natserv.net [66.114.65.147]) by zoraida.natserv.net (Postfix) with ESMTP id E33617DE1 for ; Sat, 31 Dec 2005 00:06:06 -0500 (EST) Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Francisco Reyes To: Free BSD Questions list Date: Sat, 31 Dec 2005 00:06:06 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit Subject: Script in /usr/local/etc/rc.d doesn't run X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 05:06:09 -0000 I have one script in /usr/local/etc/rc.d that doesn't run. Any ideas why? It is marked as executable ls -l /usr/local/etc/rc.d/ -r-xr-xr-x 1 root wheel 441B Dec 30 20:36 start-program.sh The script is just: #!/bin/sh log="/var/log/program.log" echo ----------------->>$log /bin/date >>$log echo Entering program.sh >>$log case "$1" in start) echo Starting program echo ================= >>$log echo Starting program >>$log /home/root/bin/archivec.pl >> $log echo beyond program call >> $log ;; stop) echo No Stopping procedure yet ;; *) echo Need parameter echo Valid parameter: start ;; esac A couple of times the log was written to.. although the script was not run.. but afterwards not even the log was changed.. as if the program did not get run at all. Any ideas?