X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=crontab.d%2Fjobs;h=8426b7ae2180142009b1a5f0dd6bdacad97dc7f5;hb=d80ef8ee3f9d24ae0a17ec15eaf6137ab7781b7f;hp=de29c357959f30bf657f3ecd5c59c09e5f927a81;hpb=33f984cea0a98d0ec01aba7e226bf850db142975;p=config%2Fdotfiles.git diff --git a/crontab.d/jobs b/crontab.d/jobs index de29c35..8426b7a 100644 --- a/crontab.d/jobs +++ b/crontab.d/jobs @@ -2,7 +2,7 @@ # # Symlink to crontab.jobs to enable it. -# Copyright (C) 2013 Simon Ruderich +# Copyright (C) 2013-2014 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,16 +19,26 @@ # Include user's binaries in PATH. Expanding $HOME doesn't work with cron, -# `update.sh` handles that! +# `setup.sh` handles that! PATH=$HOME/bin:$HOME/.shell/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games +# `rsleep` (random sleep) is 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 * * * * rsleep 60; run-parts --report .crontab.d/jobs.hourly +25 6 * * * rsleep 1800; run-parts --report .crontab.d/jobs.daily +47 6 * * 7 rsleep 3600; run-parts --report .crontab.d/jobs.weekly +52 6 1 * * rsleep 3600; run-parts --report .crontab.d/jobs.monthly -# Run every 8 hours. -39 */8 * * * run-parts --report .crontab.d/jobs.hourly8 +# Run on system startup. +@reboot run-parts --report .crontab.d/jobs.reboot + +# Run every minute. +* * * * * run-parts --report .crontab.d/jobs.minutely +# Run every x hours. +31 */6 * * * rsleep 600; run-parts --report .crontab.d/jobs.hourly6 +39 */8 * * * rsleep 600; run-parts --report .crontab.d/jobs.hourly8 + +# vim: ft=crontab