Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 30m
Published
Clock icon Sep 18, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Query and View Timer Information

    1. View the active timers.
    2. View the timer unit file contents.
    3. View the associated service unit file contents.
    4. Analyze various timer notations.
  2. Challenge

    Create a Timer, Service and Script to Write Journal Entries

    1. List the active timers.
    2. Create a timer unit file.
    3. Create an associated service unit file.
    4. Create a script to be called by the service.
    5. Enable and start the timer.
    6. Troubleshoot any issues.
    7. Verify the expected results.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans