CompTIA Linux+ (XK0-005) — Question 19
A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?
Answer options
- A. The checkdiskspace.service is not running.
- B. The checkdiskspace.service needs to be enabled.
- C. The OnCalendar schedule is incorrect in the timer definition.
- D. The system-daemon services need to be reloaded.
Correct answer: C
Explanation
The most likely cause of the job only running daily is that the OnCalendar schedule in the timer definition is incorrectly set, preventing it from executing every two hours. The other options refer to issues related to the service's status or daemon reloads, which would not directly affect the scheduled timing specified in the timer's OnCalendar directive.