

Kobject-uevent 1 Netlink systemd-udevd-kernel.socket systemd-u var/run/dbus/system_bus_socket Stream dbus.socket rv run/udev/control SequentialPacket systemd-udevd-control.socket systemd-u run/systemd/shutdownd Datagram systemd-shutdownd.socket systemd-s run/systemd/journal/stdout Stream systemd-journald.socket systemd-j run/systemd/journal/socket Datagram systemd-journald.socket systemd-j run/systemd/initctl/fifo FIFO systemd-initctl.socket systemd-i run/lvm/lvmpolld.socket Stream lvm2-lvmpolld.socket lvm2-lvmp run/lvm/lvmetad.socket Stream lvm2-lvmetad.socket lvm2-lvme run/dmeventd-server FIFO dm-event.socket dm-event. run/dmeventd-client FIFO dm-event.socket dm-event. dev/log Datagram systemd-journald.socket systemd-j rvice enabled To List all the Installed Sockets and these Types # systemctl list-sockets -show-types To list all the installed unit files # systemctl list-unit files To List all the installed Unit Files for a particular Service # systemctl list-unit-files | grep httpd To list all the jobs currently running in the background # systemctl list-jobs # systemctl restart httpd To list out the dependencies we can use the below command # systemctl list-dependencies httpd To Check whether the services are enabled or not, run the below command # systemctl is-enabled httpdĮnabled To start the services manually or restart the services manually, we can use the below commands # systemctl start httpd To verify the services active or not we needed to run the below commandĪctive To enable the service to run at the system start-up or after the machine is Rebooted # systemctl enable httpdĬreated symlink from /etc/systemd/system//rvice to /usr/lib/systemd/system/rvice. Here we will verify that the servers are active and they are enabled at system startup This will display all the status information about http (web servers services) StartLimitInterval=10000000StartLimitBurst=5 To Show the Services # systemctl show httpd Jun 02 06:48:58 centos-linux-1.shared systemd: Started The Apache HTTP Server.

Jun 02 06:48:57 centos-linux-1.shared systemd: Starting The Apache HTTP Server. Status: "Total requests: 0 Current requests/sec: 0 Current traffic: 0 B/sec" Loaded: loaded (/usr/lib/systemd/system/rvice disabled vendor preset: disabled)Īctive: active (running) since Thu 06:48:58 EDT 27s ago Below is the command to check the service. We can verify the status of the services using this command. In this article we will learn how to use ‘systemctl’ command, ‘systemctl’ is a new command which is available in the new version of Linux distributions which is used to control the system and services, we will explore some possible ways to use the ‘systemctl’ command in Linux.
