You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
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

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!