Re:Cron best practices
by xorcist on Friday March 11, 2022 @06:01AM
(#30638491)
There other variables in cron besides MAILTO, such as MAILFROM and SHELL. Checkout "man 5 crontab" for a concise listing.
If cron runs on more than one host, it can be useful to add some randomness to the time to avoid the same job being run on exactly the same time everywhere. Red Hat-family distributions have RANDOM_DELAY variable for this. Or just add the delay when Ansible or a similar tool installs the job from version control. (Which you use, right?)
If cron runs on more than one host, it can be useful to add some randomness to the time to avoid the same job being run on exactly the same time everywhere. Red Hat-family distributions have RANDOM_DELAY variable for this. Or just add the delay when Ansible or a similar tool installs the job from version control. (Which you use, right?)