From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Systemd timer units

Systemd timer units - Linux Tutorial

From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Start my 1-month free trial

Systemd timer units

- [Instructor] Systemd allows you to define timer units. Systemd timers are a powerful alternative to cron jobs. There are two different types of timer units: real-time timers and monotonic timers. Real-time timers activate on calendar events similar to cron jobs. There started based on a date and time value. We can set a timer to run every year on December 31st at midnight that says, "Happy New Year," or we could set a timer to run every Sunday that does a full backup of our system. Monotonic timers activate after a time span relative to a starting point. For instance, if a timer is to be activated five minutes after the boot process or 30 seconds after we log in, we'd used a monotonic timer. The main benefits of using timers over cron jobs comes from each job having its own service file. Also, jobs can be started independently of their timer making them easier to debug. Jobs can be configured to run in their own…

Contents