SC's Apache to automatically start up at boot time?

Hi

When installing SC8 (full linux) there is a note in the installation instructions that, after a server reboot, you will need to manually start apache using:

“sudo /opt/NetMake/v8/components/apache/sc_apache start”

… and sure enough, whenever I reboot the server (Ubuntu), the SC dev environment is unavailable until I enter the above command. The question is, does anyone know how this apache start can be automated? I’m sure this wasn’t an issue in SC7 - so how or where can I get the above command run automatically at boot time?

Thanks

I think it depends on your linux distro.This info could help:
http://www.cyberciti.biz/tips/linux-how-to-run-a-command-when-boots-up.html

Thanks Giu - helped to point me in the right direction.

Mine’s Ubuntu, not Debian, so needed to use rc.local, and put the command (without sudo) in there.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#Start up SC8 Apapche on re-boot
/opt/NetMake/v8/components/apache/sc_apache start


exit 0

Worked a treat - thanks!