The reason probably is in your script.
Does your script run as a certain user?
Did you make your script executable?
Do you have the environment variables like path defined? If not you might need to supply the full path for all executables and files.
Q: Does your script run as a certain user?
A: No.
Q: Did you make your script executable?
A: Yes. (544 or even 777)
Q: Do you have the environment variables like path defined? If not you might need to supply the full path for all executables and files.
A: I don't think that is necessary...
My script is from No-IP (DDNS services) and it runs in "/etc/rc.d/rc7.d".
The script is:
#######################################################
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#######################################################