Disabling services in Ubuntu

I install quite a few things on my laptop and some softwares start as services. E.g Mysql , apache. I donot want these applications all the time, they slow down my laptop.

One option is to stop them everytime using
sudo initctl stop jobname

Or go to /etc/init and rename the job conf to something job.conf.noexec (anything other than .conf).
To disable old style jobs that are non upstart use following utility and mark the job to not start in runlevel 3.
sysv-rc-conf

Advertisements