In this hands-on lab, you will be investigating process activity and managing services on a development system. You use the `ps` and `top` commands to review process activity and locate the `PID` for a specific process. You will use this information to kill an active process that shouldn’t be running. To ensure the process isn’t restarted by the service, you will use the `systemctl` command to mask the service so it doesn’t start automatically and cannot be manually started by an administrator.
*This course is not approved or sponsored by Red Hat.*
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- View Process Information Using the PS and TOP Commands
- Use
top
to view process activity. - Use
grep
to filterps
output formariadb
.
- Use
- Cycle the Problematic Service
- Use the
systemctl
command to cycle themariadb
. - Confirm
mariadb
service is running using thesystemctl
command.
- Use the
- Identify the PID and KILL the Problematic Process
- Use the
ps
command to identify the PID for themariadb
process. - Use the
kill
command to terminate themariadb
using theSIGKILL
parameter.
- Use the
- Stop and Mask the Problematic Service to Prevent It from Restarting
- Check the
mariadb
service status usingsystemctl
. - Use
systemctl
to stop themariadb
service. - Mask the
mariadb
service usingsystemctl
. - Attempt to start the
mariadb
service to confirm it is properly masked.
- Check the