X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=crontab.d%2Fjobs;h=8f575fcc85b57d1b32459f8bca21e366c2f867bd;hb=556fcce13fb08df53b84f2878fdff27464aacf6b;hp=fb83d9a467d0ca3b5376f7c094c4b70c0a553126;hpb=7e488d605fa736d2353c1c5e1f57ecf241edbda2;p=config%2Fdotfiles.git diff --git a/crontab.d/jobs b/crontab.d/jobs index fb83d9a..8f575fc 100644 --- a/crontab.d/jobs +++ b/crontab.d/jobs @@ -21,15 +21,18 @@ # Include user's binaries in PATH. Expanding $HOME doesn't work with cron, # `update.sh` handles that! PATH=$HOME/bin:$HOME/.shell/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games +# "RAND_SLEEP X" is also expanded by `update.sh` to a command which sleeps +# randomly between 0 and X seconds. Used to reduce concurrent commands if this +# crontab file is used by multiple users. # Taken from Debian's /etc/crontab from cron package 3.0pl1-124 and modified. # Thanks. -17 * * * * run-parts --report .crontab.d/jobs.hourly -25 6 * * * run-parts --report .crontab.d/jobs.daily -47 6 * * 7 run-parts --report .crontab.d/jobs.weekly -52 6 1 * * run-parts --report .crontab.d/jobs.monthly +17 * * * * RAND_SLEEP 60; run-parts --report .crontab.d/jobs.hourly +25 6 * * * RAND_SLEEP 1800; run-parts --report .crontab.d/jobs.daily +47 6 * * 7 RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.weekly +52 6 1 * * RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.monthly # Run every x hours. -31 */6 * * * run-parts --report .crontab.d/jobs.hourly6 -39 */8 * * * run-parts --report .crontab.d/jobs.hourly8 +31 */6 * * * RAND_SLEEP 600; run-parts --report .crontab.d/jobs.hourly6 +39 */8 * * * RAND_SLEEP 600; run-parts --report .crontab.d/jobs.hourly8