← LOG/LINUX/ENTRY N° 21

Easily Remove Services In Ubuntu

This website contains information on Ubuntu (Linux) System also contains some howtos and tutorials in different topics.

FILED
READ
1 MIN
CATEGORY
LINUX
TAGS
LINUX COMMANDS · SERVICES · UBUNTU · UPDATE-RC.D

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.

■ END OF ENTRY 21