My os is 11.04.
I have apache2
& mysql
installed.
How to stop apache2, mysql from starting automatically as computer starts?
11.04Apache2MySQLserverstartup
My os is 11.04.
I have apache2
& mysql
installed.
How to stop apache2, mysql from starting automatically as computer starts?
Best Answer
MySQL is handled by upstart. In 11.04 you can use the new override feature to modify the starting behaviour:
See the section "Disabling a Job from Automatically Starting" in the Upstart Cookbook
Apache still uses traditional SysV init scripts so you use
to remove the links from
/etc/rcX.d
or, alternatively, usewhich "disables" the script by changing it from a start script
S91apache2
to a stop scriptK09apache2
. This is reversible byupdate-rc.d apache2 enable
.