CompTIA
XK0-005 · Question #1872
A Linux administrator is investigating the reason a system timer is not running every night at midnight. The administrator reviews the following unit file: Which of the following modifications…
The correct answer is C. Change OnCalendar to*-*-* 00:00:00. F. Remove OnCalendar=*-*-01 00:00:00. Changing OnCalendar to -- 00:00:00 ensures the timer fires every day at midnight rather than only on the first of the month. Removing the existing OnCalendar=-*-01 00:00:00 entry clears the incorrect monthly trigger so that the corrected daily schedule takes effect.
Troubleshooting
Question
A Linux administrator is investigating the reason a system timer is not running every night at midnight. The administrator reviews the following unit file: Which of the following modifications should the administrator make in the unit file? (Choose two.)
Exhibit
Options
- ARemove RandomizedDelaySec=10800.
- BAdd WakeSystem=Midnight.
- CChange OnCalendar to*-- 00:00:00.
- DAdd OnCalendar=--* daily.
- EAdd AccuracySec=1.
- FRemove OnCalendar=--01 00:00:00.
How the community answered
(17 responses)- A6% (1)
- C82% (14)
- E12% (2)
Explanation
Changing OnCalendar to --* 00:00:00 ensures the timer fires every day at midnight rather than only on the first of the month. Removing the existing OnCalendar=--01 00:00:00 entry clears the incorrect monthly trigger so that the corrected daily schedule takes effect.
Topics
#systemd timers#Linux scheduling#Unit files#System administration
Community Discussion
No community discussion yet for this question.
