Check running services on Linux - Tech CCNA

Tech CCNA

Today E - Learning , is a best idea to study , therefore this website is best for network and network security concepts.

Breaking

Post Top Ad

Responsive Ads Here

Wednesday, 10 January 2018

Check running services on Linux

Check running services on Linux | Tech CCNA

Check running services on Linux



Before you start

Objectives : You will be able to check status of running service & stop or start the service.

Tags : Check Linux Services.


Check running services on Linux


We all know that Linux is an open source system and widely used. Main reason behind this is that it provide great services and these all services are free of cost. So, we have to install may service on it, then it will provide these services to us.e. Using service command we can control almost all the service and run or stop these services.
If the service has an init script installed, you can use the service command to start, stop, and check the status of the service. The service command references a service by using its init script, which is stored in the /etc/init.d directory for debain based distributions and the etc/rc.d/init.d directory for Red Hat based distributions.
I will take network-manager service for instance, but you can take any service.



http://www.techccna.com


To Start a service :

$sudo service network-manager start

To Stop a service :

$sudo service network-manager stop

To Restart a particular service :

$sudo service network-manager restart

To Check the Status of service :

$sudo service network-manager restart
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor p
Active: active (running) since Thu 2018-01-11 11:27:14 IST; 4s ago
Docs: man:NetworkManager(8)
Main PID: 7247 (NetworkManager)
CGroup: /system.slice/NetworkManager.service
├─7247 /usr/sbin/NetworkManager --no-daemon
├─7310 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helpe
└─7327 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts

If you have still doubt in this article, please comment in the comment box, i will happy to help !!

No comments:

Post a Comment

Pages