this post was submitted on 14 Mar 2025
29 points (91.4% liked)

Linux

6450 readers
580 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] SquiffSquiff@lemmy.world -1 points 16 hours ago (1 children)

How are systemd timers not a solution looking for a problem?

[–] MadhuGururajan@programming.dev 3 points 14 hours ago (1 children)
[–] SquiffSquiff@lemmy.world 2 points 12 hours ago (1 children)

Cron already exists and is established as the solution in this space. It's also used as the model for a lot of other timer services outside the Linux kernel.

[–] BlackEco@lemmy.blackeco.com 4 points 10 hours ago* (last edited 10 hours ago)

Have you read the article? The fourth paragraph lists improvements systemd timers bring over cron:

Cron is easy, very simple and robust mechanism to execute periodic tasks on a *nix server, and is available by default on all popular Linux distributions. However, cron suffers from some issues:

  • If the system is down when the cron needs to run, the cron will be missed

  • There is no built-in status monitoring

  • There are no built-in logs

  • If you want to execute pre/post commands (for example by pinging an external service for success/failure) you have to do it inside the script itself

All of these issues are addressed with systemd services and timers, as the authors explains in details.