Start up script

Hello,

I have a script that starts a type of web server that I need to get to start up at startup, I would like to keep the current script in its directory and not stick it in the rc directorys. So really I want a shell script that will execute the web server script at startup. I dont really want anyone to type it out for me because where's the fun in at? If anyone could guide or link me to some sort of tutorial in would be most appreciated.

Thanks,

Mr Pink

You could do something like this:

  1. Create your webserver startup script to handle start and stop as arguments
  2. Create a link in the rc3.d directory as S99<script_name> that points to your startup script and a link in rc0.d as S00<script_name> that points to the same script.

When the system shuts down or boots up, the links in the rc directories will invoke your script to start/stop the webserver.