|
|
|
|
|
by luckycharms810
1285 days ago
|
|
While I agree Systemd timers aren't as ergonomic to set up - there are some benefits that I would basically never give up at this point. * Running the service on command ( this is the best way to troubleshoot issues with your slightly different environments / cron's version of shell. I've spent many minutes over my career - setting the crontab one minute and the future and waiting for it to run / fail ) * Easily inspecting when the next run of the service is. ( list-timers ) * Straightforward access to the logs ( Always journalctl ) * Specifying environment variables easily * OnFailure |
|
* Built in functionality for telling when the cron last ran, and whether it was successful or not (so you can do alerting)
* Ability to specify human-readable schedules
* Built-in feature for randomising cron start time to avoid stampeding