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 a systemd timer?
Open an interactive chat with Bash
What does OnBootSec do in a systemd timer?
Open an interactive chat with Bash
How does OnActiveSec differ from OnBootSec in systemd timers?