I'm trying to auto start SimpleHelp Server on boot. Everything works fine with it when I start it manually. I have followed these instructions but can't seem to get it to work.
1. Add simplehelp script to /etc/init.d
Contents of simplehelp
#!/bin/bash
SHELPDIR=/opt/SimpleHelp
case "$1" in
start)
cd $SHELPDIR ; sh ./serverstart.sh
;;
stop)
cd $SHELPDIR ; sh ./serverstop.sh
;;
reload|force-reload)
cd $SHELPDIR ; sh ./serverstop.sh
cd $SHELPDIR ; sh ./serverstart.sh
;;
restart)
cd $SHELPDIR ; sh ./serverstop.sh
cd $SHELPDIR ; sh ./serverstart.sh
;;
esac
2 Then did this
# chmod 755 /etc/init.d/simplehelp
# cd /etc/rc0.d
# ln -s ../init.d/simplehelp K20simplehelp
# cd /etc/rc1.d
# ln -s ../init.d/simplehelp K20simplehelp
# cd /etc/rc2.d
# ln -s ../init.d/simplehelp S20simplehelp
# cd /etc/rc3.d
# ln -s ../init.d/simplehelp S20simplehelp
# cd /etc/rc4.d
# ln -s ../init.d/simplehelp S20simplehelp
# cd /etc/rc5.d
# ln -s ../init.d/simplehelp S20simplehelp
# cd /etc/rc6.d
# ln -s ../init.d/simplehelp K20simplehelp
3 After that I tried to run these command
* (to start the SimpleHelp server...) /etc/init.d/simplehelp start
* (to stop the SimpleHelp server...) /etc/init.d/simplehelp stop
* (to restart the SimpleHelp server...) /etc/init.d/simplehelp restart
4 I get a simplehelp command not found
These are generic instructions to get it to workin linux is there something special that sme needs?