Challenge - 5 Problems
Systemd Timer Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of systemd timer status command
What is the output of the command
systemctl status mytask.timer if the timer is active and scheduled to run the next job in 10 minutes?Linux CLI
systemctl status mytask.timer
Attempts:
2 left
💡 Hint
Look for the 'Active: active (waiting)' status and the next trigger time.
✗ Incorrect
When a systemd timer is active and waiting to trigger, the status shows 'active (waiting)' and the next trigger time with a countdown.
🧠 Conceptual
intermediate2:00remaining
Understanding systemd timer units and service units
Which statement correctly describes the relationship between a systemd timer unit and its corresponding service unit?
Attempts:
2 left
💡 Hint
Think about what triggers the service execution in systemd timers.
✗ Incorrect
A systemd timer unit schedules when its linked service unit runs. The timer triggers the service based on the timer's schedule.
📝 Syntax
advanced2:00remaining
Identify the correct OnCalendar syntax for a systemd timer
Which option correctly sets a systemd timer to run every day at 3:30 AM using the OnCalendar directive?
Linux CLI
[Timer] OnCalendar=???
Attempts:
2 left
💡 Hint
OnCalendar uses a specific time format like 'HH:MM:SS' or calendar events.
✗ Incorrect
The correct OnCalendar syntax for 3:30 AM daily is '03:30:00'. 'daily' alone means midnight. Other options are invalid formats.
🔧 Debug
advanced2:00remaining
Why does this systemd timer not trigger the service?
Given the following timer unit file, why does the timer never trigger the service?
[Unit]
Description=Run backup daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
Linux CLI
[Service] ExecStart=/usr/local/bin/backup.sh
Attempts:
2 left
💡 Hint
Timers trigger service units, but the service unit must be defined separately.
✗ Incorrect
The timer unit file should not contain a [Service] section; the service must be defined in a separate .service file. Without a service unit, the timer has nothing to trigger.
🚀 Application
expert3:00remaining
Create a systemd timer to run a script every 15 minutes starting at 5 minutes past the hour
Which OnCalendar value correctly schedules a systemd timer to run every 15 minutes starting at 5 minutes past each hour (e.g., 00:05, 00:20, 00:35, 00:50)?
Attempts:
2 left
💡 Hint
Use the format 'HH:MM/interval:SS' with leading zeros for minutes.
✗ Incorrect
The correct syntax uses '05/15' to start at 5 minutes and repeat every 15 minutes. Leading zeros are required for minutes. Other options are invalid or incorrectly formatted.