my os is 11.04.
i have apache2 & mysql installed.
how to stop apache2, mysql from starting automatically as computer starts?
|
|
|
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
which "disables" the script by changing it from a start script |
|||||||||||||||||||
|
|
Interestingly, it's a different answer for each package in 11.04.
To learn more about override files, see: The Upstart Cookbook |
|||||||
|
|
This thread will help you: http://superuser.com/questions/35151/how-do-i-stop-services-from-starting-on-boot-on-ubuntu |
|||
|
|
update-rc.d is a good CLI tool to do this. The linked page has an example involving apache2 |
|||
|
|
|
It was't working for me. When trying to disable mysql in ubuntu I was receiving the message: System start/stop links for /etc/init.d/mysql do not exist. So I found a work around in this link: http://forum.linode.com/viewtopic.php?t=5594
And that's it. |
|||
|
|
|
After spending a lot of time trying to stop bind9 from starting on boot, I finally tested:
I got the following output:
At some point I will want to have bind9 auto start. Can someone tell me how to "undo" this? |
|||
|
|