I have a Linux box (fedora core 1) running Nagios monitoring our websites from a remote location. I need a way to automatically run a few commands (the Nagios and apache start commands) and put in the apache SSL certificate password during startup in the case that the box loses power. Is there a way I can do this with a shell script that will run at startup (not login as it is likely that no-one will be near the box to log in) or can anyone think of a better way to do this.
Thanks in advance
Mike