Koozali.org: home of the SME Server

how to auto start Remote Support web app on boot

Offline jsmith7735

  • 2
  • +0/-0
how to auto start Remote Support web app on boot
« on: January 14, 2011, 07:46:22 PM »
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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: how to auto start Remote Support web app on boot
« Reply #1 on: January 14, 2011, 09:04:47 PM »
Moving to contribs section

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: how to auto start Remote Support web app on boot
« Reply #2 on: January 17, 2011, 03:27:45 PM »
try:

Code: [Select]
config set simplehelp service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S99simplehelp

let us know