Easily Remove Services In Ubuntu

Generally the ubuntu services are run in runlevel of the account executing them. You can check your current runlevel by executing command.

asee@asee-hp:~$ runlevel

N 2

To remove the service, firs you have to know the name of service. To find that use command

asee@asee-hp:~$ ps – aux | grep {your_service_name_here}
For eg. I am going to stop websever apache2 some it is found running with httpd also. But here I am going to use apache2
asee@asee-hp:~$ ps – aux | grep apache2

Removing any system startup links for /etc/init.d/apache2 …

here you’ll some see listings

Finally, we removed the service apache2 from running.