3/17/15

Disable autostart for any service in Linux

Apache

sudo update-rc.d -f apache2 disable
Apache is still using rc.d init script, which is why you must disable it using update-rc.d.

MySQL

echo manual | sudo tee /etc/init/mysql.override
A cleanest way to disable autostart for any service with a .conf file in /etc/init (like mysql), is to run as root: echo "manual" >> /etc/init/[service_name].override. 

No comments: