Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Oracle Linux: How to Create New systemd Timers
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Oracle Linux 7/8/9
Goal:
This article is to document how to create new systemd timers, a systemd way of replacing crob jobs.
Solution:
Timer unit files are a type of systemd file that the systemctl utility uses to schedule tasks, similar to the cron utility that uses crontab and other cron jobs for the same purpose.
systemd timers on a brand new Oracle Linux 9 system can look like this:
# systemctl list-unit-files --type=timer --state=enabled
UNIT FILE STATE PRESET
dnf-makecache.timer enabled enabled
logrotate.timer enabled enabled
mlocate-updatedb.timer enabled enabled
Tagged:
0