Check running services on Linux
Before you start
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.
To Start a service :
To Stop a service :
To Restart a particular service :
To Check the Status of service :
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