Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2005 00:06:06 -0500
From:      Francisco Reyes <lists@stringsutils.com>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Script in /usr/local/etc/rc.d doesn't run 
Message-ID:  <cone.1136005566.749253.15373.1000@zoraida.natserv.net>

next in thread | raw e-mail | index | archive | help
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?



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