Setting Apache and MySQL to start/shutdown manually

Starting Apache and MySQL will take some additional time, but other than that if you give these services nothing to do they won’t impact your system performance (they won’t eat much CPU in idle; and any memory they need goes to swap). However, and you can probably do this through the GUI as well, here goes with a few commands to switch them to manual.

List all the services on your machine:

initctl list

Look for the apache and mysql service name. Once you have the correct name for the apache and mysql service from that list, switch each service to manual with the following command (replace <servicename>, including the angle brackets, with the service name from the list):

echo manual | sudo tee -a /etc/init/<servicename>.override

After reboot those services will not start automatically. You can start them with:

sudo initctl start <servicename>

 

Source: http://forums.linuxmint.com/viewtopic.php?f=90&t=91776#p527171

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s