- Lab
- A Cloud Guru
Configuring systemd Timers
With `systemd` comes the competitor to the traditional `cron` daemon, timers. For those already proficient in `cron`, timers may be just a curiosity or another cryptic time notation to learn, but for those who are just entering the world of Linux, `systemd` timers will be the norm. In this lab, we will list and decode timer information and view timers and their associated service unit files to see how they work together. We'll use `systemd-analyze` to investigate and tune up our time notations and see when our timers will run. We will then set up a simple timer/service pairing with a helper script that will write regular entries to the systemd journal, and then we'll make an update and view the results.
Path Info
Table of Contents
-
Challenge
Query and View Timer Information
- View the active timers.
- View the timer unit file contents.
- View the associated service unit file contents.
- Analyze various timer notations.
-
Challenge
Create a Timer, Service and Script to Write Journal Entries
- List the active timers.
- Create a timer unit file.
- Create an associated service unit file.
- Create a script to be called by the service.
- Enable and start the timer.
- Troubleshoot any issues.
- Verify the expected results.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.