Using systemd as cron

1 · Daniel Pereira · Jan. 13, 2022, 11 p.m.
Tradionally, *nix users are familiar (or maybe not so much) with cron syntax, whereas you define applications to be run at specific schedules. What most people don’t know is that you can also use the power of Systemd to do the same, and in return get all the benefits by doing so, such as centralized logging through journald. In order to use it you will need at least two files, one for a “service” unit, and another called timer unit. Here are the files and the contents of a minimal setup: /etc/sy...