CompTIA Linux+ XK0-006 (V8) Practice Question

You have created /etc/systemd/system/logrotate.service to rotate application logs. A matching timer unit, logrotate.timer, must:

  • start logrotate.service every day at 03:15 local time, and
  • immediately run the service at boot if the scheduled time was missed while the machine was powered off.

The [Timer] section of logrotate.timer is still empty. Which set of directives will meet both requirements?

  • OnCalendar=*-*-* 03:15:00
    Persistent=true
    
  • OnBootSec=3h15m
    RemainAfterElapse=yes
    
  • OnCalendar=Mon..Sun 03:15:00
    AccuracySec=0
    
  • OnCalendar=daily
    WakeSystem=true
    
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot