]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/cron/crontab
"Update Booster" fertiggestellt und getestet.
[people/pmueller/ipfire-2.x.git] / config / cron / crontab
1 #
2 # crontab for ipfire
3 #
4 SHELL=/bin/bash
5 PATH=/sbin:/bin:/usr/sbin:/usr/bin
6 MAILTO=root
7 HOME=/
8
9 # Do all jobs in this directories
10 */1 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.minutely
11 */5 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.cyclic
12 01 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.hourly
13 25 1 * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.daily
14 47 2 * * 0 test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly
15 52 3 1 * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.monthly
16
17 # Log rotation
18 01 * * * * /usr/sbin/logrotate /etc/logrotate.conf
19
20 # Set time
21 */5 * * * * /usr/local/bin/timecheck > /dev/null 2>&1
22
23 # Summarize ip accounting info:
24 2 1 * * * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the day 2 days ago" >/dev/null
25 3 1 * * 0 /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4 weeks ago" >/dev/null
26 4 1 1 2 * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2 years ago" >/dev/null
27
28 # Make some nice graphs
29 */5 * * * * /usr/local/bin/makegraphs >/dev/null
30
31 # Force update the dynamic dns registration once a week
32 # Force update even if IP has not changed once a month if 'minimize update' selected in GUI
33 # to avoid account declared as dead
34 */5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl
35 9 2 * * 0 [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f
36 3 2 1 * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f -m
37
38 # Logwatch
39 01 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
40 LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
41 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
42
43 # hddshutdown
44 02 * * * * /usr/local/bin/hddshutdown >/dev/null
45
46 # connection-scheduler
47 */5 * * * * /usr/local/bin/connscheduler timer > /dev/null
48
49 # URL Filter && Update Accelerator
50 %nightly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.daily
51 %weekly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.weekly
52 %monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
53 %nightly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.daily
54 %weekly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.weekly
55 %monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
56
57 # Reset Dialup Statistics
58 0 0 1 * * /usr/local/bin/dialctrl.pl reset