]> git.ipfire.org Git - ipfire-2.x.git/blob - config/cron/crontab
Merge remote-tracking branch 'ms/ipsec-subnets' into next
[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=
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 &nice(10),bootrun 25 1 * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.daily
14 &nice(10),bootrun 47 2 * * 1 test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly
15 &nice(10),bootrun 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 # Make some nice graphs
24 */5 * * * * /usr/local/bin/makegraphs >/dev/null
25 17 5 * * * /etc/init.d/tmpfs backup >/dev/null
26
27 # Update dynamic DNS records every five minutes.
28 */5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all
29
30 # Logwatch
31 01 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
32 LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
33 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
34
35 # hddshutdown
36 */30 * * * * /usr/local/bin/hddshutdown >/dev/null
37
38 # connection-scheduler
39 */5 * * * * /usr/local/bin/connscheduler timer > /dev/null
40
41 # URL Filter && Update Accelerator
42 %nightly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.daily
43 %weekly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.weekly
44 %monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
45 %nightly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.daily
46 %weekly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.weekly
47 %monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
48
49 # fireinfo
50 %nightly,random * 23-4 /usr/bin/sendprofile >/dev/null 2>&1
51
52 # pakfire
53 %nightly,random * 23-4 /usr/local/bin/pakfire update >/dev/null 2>&1
54
55 # Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
56 00 3 * 3 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
57 00 2 * 10-11 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
58
59 # Update GeoIP database once a month.
60 %monthly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/xt_geoip_update >/dev/null 2>&1
61
62 # Retry sending spooled mails regularly
63 %hourly * /usr/sbin/dma -q
64
65 # Cleanup the mail spool directory
66 %weekly * * /usr/sbin/dma-cleanup-spool