[nycbug-talk] Script in /usr/local/etc/rc.d doesn't run
Francisco Reyes
lists
Sat Dec 31 13:46:16 EST 2005
Tried the questions list.. but zero response so far..
Last issue before this machine goes in production. :-(
--
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
--
All the echo are just debuggin tools.. It seems the script simply doesn't
run.
More information about the talk
mailing list