RHCSA Rapid Track
In this lab, you will identify installed and running services on the system.
Outcomes
A list of active and enabled services on the system.
Reset your serverX system.
List all service units on the system.
[student@serverX ~]$sudo systemctl list-units --type=serviceList all socket units, active and inactive, on the system.
[student@serverX ~]$sudo systemctl list-units --type=socket --allExplore the status of the chronyd service. This service is used for network time synchronization (NTP).
Display the status of the
chronydservice. Note the process ID of any active daemons.[student@serverX ~]$sudo systemctl status chronydConfirm that the listed daemons are running.
[student@serverX ~]$ps -pPID
Explore the status of the sshd service. This service is used for secure encrypted communication between systems.
Determine if the sshd service is enabled to start at system boot.
[student@serverX ~]$sudo systemctl is-enabled sshdDetermine if the sshd service is active without displaying all of the status information.
[student@serverX ~]$sudo systemctl is-active sshdDisplay the status of the sshd service.
[student@serverX ~]$sudo systemctl status sshd
List the enabled or disabled states of all service units.
[student@serverX ~]$sudo systemctl list-unit-files --type=service