News for hackers. Stuff that matters.
Re:Crontab.guru – cron schedule expression editor by profmonocle on Friday October 04, 2019 @02:04AM (#21155207)
A nice feature of Systemd timers is the ability to say something like "run once per 24 hour period, but I don't care when". The task runs at a random time during the period, which is nice for tasks that hit network services, since you don't get a zillion clients hitting the server at the same time. (i.e. local midnight or UTC midnight.)

Package repo updates and Let's Encrypt renewals are a couple services I've seen use this. There isn't a great way to do this with cron that I know of, besides running some script that sleeps for a random duration.

That said, I still use cron for things that don't need this feature because it's portable and I'm just more familiar with it.

There are no comments on this comment yet.