RHCSA Rapid Track
Performance Checklist
In this lab, you will configure several services to be enabled or disabled, running or stopped, based on a specification that is provided to you.
Outcomes
You should be able to enable, disable, start, and stop services.
Log in as the student user on workstation using student as the password.
From workstation, run the lab services-review start command.
The command runs a start script that determines whether the host, serverb, is reachable on the network.
The script also ensures that the psacct and rsyslog services are configured appropriately on serverb.
[student@workstation ~]$lab services-review start
On
serverb, start thepsacctservice.Use the ssh command to log in to
serverbas thestudentuser.[student@workstation ~]$ssh student@serverb...output omitted...[student@serverb ~]$Use the systemctl command to verify the status of the
psacctservice. Notice thatpsacctis stopped and disabled to start at boot time.[student@serverb ~]$systemctl status psacct● psacct.service - Kernel process accounting Loaded: loaded (/usr/lib/systemd/system/psacct.service;disabled; vendor preset: disabled)Active:inactive(dead)Start the
psacctservice.[student@serverb ~]$sudo systemctl start psacct[sudo] password for student:student[student@serverb ~]$Verify that the
psacctservice is running.[student@serverb ~]$systemctl is-active psacctactive
Configure the
psacctservice to start at system boot.Enable the
psacctservice to start at system boot.[student@serverb ~]$sudo systemctl enable psacctCreated symlink /etc/systemd/system/multi-user.target.wants/psacct.service → /usr/lib/systemd/system/psacct.service.Verify that the
psacctservice is enabled to start at system boot.[student@serverb ~]$systemctl is-enabled psacctenabled
Stop the
rsyslogservice.Use the systemctl command to verify the status of the
rsyslogservice. Notice that thersyslogservice is running and enabled to start at boot time.[student@serverb ~]$systemctl status rsyslog● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service;enabled; vendor preset: enabled)Active:active(running) since Fri 2019-02-08 10:16:00 IST; 2h 34min ago ...output omitted...Press q to exit the command.
Stop the
rsyslogservice.[student@serverb ~]$sudo systemctl stop rsyslog[sudo] password for student:student[student@serverb ~]$Verify that the
rsyslogservice is stopped.[student@serverb ~]$systemctl is-active rsysloginactive
Configure the
rsyslogservice so that it does not start at system boot.Disable the
rsyslogservice so that it does not start at system boot.[student@serverb ~]$sudo systemctl disable rsyslogRemoved /etc/systemd/system/syslog.service. Removed /etc/systemd/system/multi-user.target.wants/rsyslog.service.Verify that the
rsyslogis disabled to start at system boot.[student@serverb ~]$systemctl is-enabled rsyslogdisabled
Reboot
serverbbefore evaluating the lab.
This concludes the lab.