Quote:
Originally posted by ezekiel61
What is the best way to run Apache2 and MySQL as daemons that run on startup? Can anyone give me some scenarios/examples. Thanks in advance!
it helps to know the os you are useing. different oses use differnt ways to start services.
if you read the apache2 docs you should see a section that says how to install it as a service.
basicly you create a script and put it with the rest fo your run control scripts. and link to it from teh proper init level directory.
IE:
in solaris all the run control scripts are in /etc/init.d
you create your start/shutdown script in there.
then usually in /etc/rc3.d you create a hard link to the script you just created. The link would be named S##script-name (ie: S99apache2) and you would have a shutdown script in /etc/rc0-2.d also. These scripts would start with a K.