Tuesday, April 14, 2015

Ubuntu : Remove Apache2 autostart using sudo sysv-rc-conf

Peace be upon you! Do you remember my post about tutorial How to stop Apache2 and MySQL services from boot on Ubuntu linux? Somehow, it not working for the latest version of Ubuntu for Apache2. But after a quick googling, I found a solution for this problem.

Normally, we can just use chkconfig tool but this tool is missing in Ubuntu. For alternative, we can use sysv-rc-conf tool.

# Installing the sysv-rc-conf tool
sudo apt-get install sysv-rc-conf

# Check init script status for Apache2 services
sudo sysv-rc-conf --list apache2

# To disable Apache2 script
sudo sysv-rc-conf apache2 off

# To enable it again
sudo sysv-rc-conf apache2 on

Simple and easy, right ? See you again in next tutorial. Bye!

No comments:

Post a Comment