]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - crontab.d/jobs
crontab.d/jobs: Add support to run job every minute.
[config/dotfiles.git] / crontab.d / jobs
1 # Run jobs on regular bases. Similar to /etc/cron.*/.
2 #
3 # Symlink to crontab.jobs to enable it.
4
5 # Copyright (C) 2013  Simon Ruderich
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20
21 # Include user's binaries in PATH. Expanding $HOME doesn't work with cron,
22 # `update.sh` handles that!
23 PATH=$HOME/bin:$HOME/.shell/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
24 # "RAND_SLEEP X" is also expanded by `update.sh` to a command which sleeps
25 # randomly between 0 and X seconds. Used to reduce concurrent commands if this
26 # crontab file is used by multiple users.
27
28
29 # Taken from Debian's /etc/crontab from cron package 3.0pl1-124 and modified.
30 # Thanks.
31 17 * * * * RAND_SLEEP 60;   run-parts --report .crontab.d/jobs.hourly
32 25 6 * * * RAND_SLEEP 1800; run-parts --report .crontab.d/jobs.daily
33 47 6 * * 7 RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.weekly
34 52 6 1 * * RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.monthly
35
36 # Run every minute.
37 * * * * * run-parts --report .crontab.d/jobs.minutely
38 # Run every x hours.
39 31 */6 * * * RAND_SLEEP 600; run-parts --report .crontab.d/jobs.hourly6
40 39 */8 * * * RAND_SLEEP 600; run-parts --report .crontab.d/jobs.hourly8
41
42 # vim: ft=crontab