5 ms·
IMO Systemd Timers provide much better control over how the cron job is run. Need to distribute lots of cron jobs evenly to avoid overloading the system? Use R
by 1una 2y ago
IMO Systemd Timers provide much better control over how the cron job is run.
Need to distribute lots of cron jobs evenly to avoid overloading the system? Use RandomizedDelaySec.
Some cron jobs are flaky and you want to re-run if it fails? Add Restart=on-failure to corresponding service.
Some cron jobs conflict with each other? Set Conflicts=foo.service or maybe Before & After.
Sure, all above are possible with shell scripts. But systemd provides a standard, reliable way to define these properties.
- bhaney 2y ago> Systemd Timers provide much better control over how the cron job is run Yes, they do. And as the very first sentence in my comment says, I like systemd timers when they're appropriate. None of the features you've mentioned were used in the author's solution, which is the sole thing I'm arguing against.