A system administrator is creating a systemd timer to start a backup service exactly 10 minutes after the machine has finished booting. Which line belongs in the [Timer] section of the unit file to meet this requirement?
OnBootSec=10min is the correct directive because it triggers the timer a specified period after the system booted. OnActiveSec=10min measures time from when the timer itself is activated-typically boot, but not always if the timer is started later. OnUnitActiveSec=10min and OnCalendar=*:0/10 relate to the last activation of the associated unit and wall-clock calendar events, respectively, so they do not guarantee a delay relative to boot.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is systemd and why is it important in Linux?
Open an interactive chat with Bash
Can you explain the purpose of the Timer Unit in systemd?
Open an interactive chat with Bash
What do the other directives (like OnUnitActiveSec and OnCalendar) do in systemd timer units?