

Some (but not all) systemd unit files have pointers to the relevant documentation.The fifth line shows the name of the event or the service that is triggered by the timer.The fourth line contains the date and time the timer will be triggered next and an approximate time until the trigger occurs.The third line indicates its active status, which includes the date and time the timer became active.
10 minute timer minecraft full#
The second line displays the timer's status, whether it is loaded, the full path to the timer unit file, and the vendor preset.The first line has the timer's file name and a short description of its purpose.Jun 02 08:02:33 systemd: Started Daily Cleanup of Temporary Directories.Įach timer has at least six lines of information associated with it:

Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.timer static vendor preset: disabled)

These timers trigger events necessary for common maintenance tasks, such as updating system databases, cleaning temporary directories, rotating log files, and more.Īs an example, I'll look at some of the timers on my primary workstation by using the systemctl status *timer command to list all the timers on my host.

When Fedora or any systemd-based distribution is installed on a new system, it creates several timers that are part of the system maintenance procedures that happen in the background of any Linux host. For example, a timer can trigger a script or program to run a specific amount of time after an event such as boot, startup, completion of a previous task, or even the previous completion of the service unit called by the timer. Timers can also do some things that cron jobs cannot. Like cron jobs, systemd timers can trigger events-shell scripts and programs-at specified time intervals, such as once a day, on a specific day of the month (perhaps only if it is a Monday), or every 15 minutes during business hours from 8am to 6pm. While doing research for this systemd series, I learned that systemd timers have some very interesting capabilities. I have used timers for a few years, but usually, I learned just enough to perform the task I was working on. I am in the process of converting my cron jobs to systemd timers.
