An important part of Linux system administration is managing scheduled tasks. Scheduled tasks can be used for system management, applications, reporting and more. In this hands-on lab, we will examine scheduling tasks using at and cron. Additionally, a key part of managing a RHEL 8 system is managing services using ‘systemd’. With ‘systemd’ we can not only configure and manage services, but set and change system boot targets. In these tasks, we will not only start, stop and configure services to start automatically at boot, but will also configure systems to boot into a specific target automatically. Correct system time is critical for a properly functioning server. Important functions like authentication, logging and more depend on the system time being in sync. Finally, we will also examine how to configure time service clients on RHEL 8.
Successfully complete this lab by achieving the following learning objectives:
- Schedule Tasks Using at and cron
- Query and install needed packages.
- Configure at tasks and troubleshoot issues.
- Configure cron tasks to execute a script on a schedule.
- Troubleshoot any issues that occur.
- Verify the script performs properly.
- Start and Stop Services and Configure Services to Start Automatically at Boot
- Query status and troubleshoot a system service
- Configure it to start at boot and run persistently
- Verify the status of the service.
- Configure Systems to Boot into a Specific Target Automatically
- Query the system’s default target.
- Set a different default target.
- Reboot the system to test the configuration.
- Verify the default target’s state.
- Configure Time Service Clients
- Query the status of time services.
- Query the current configuration of time sources.
- Replace the time sources with your organizational ones.
- Verify and get statistics about time services.