]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame_incremental - config/cron/crontab
Captive-Portal: add crontab and cleanup scripts
[people/pmueller/ipfire-2.x.git] / config / cron / crontab
... / ...
CommitLineData
1#
2# crontab for ipfire
3#
4SHELL=/bin/bash
5PATH=/sbin:/bin:/usr/sbin:/usr/bin
6MAILTO=
7HOME=/
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
1201 * * * * 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
1801 * * * * /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
26# Backup ramdisks if necessary
27%nightly,random * 23-4 /etc/init.d/collectd backup &>/dev/null
28%nightly,random * 23-4 /etc/init.d/vnstat backup &>/dev/null
29
30# Update dynamic DNS records every five minutes.
31*/5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all
32
33# Logwatch
3401 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
35 LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
36 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
37
38# hddshutdown
39*/30 * * * * /usr/local/bin/hddshutdown >/dev/null
40
41# connection-scheduler
42*/5 * * * * /usr/local/bin/connscheduler timer > /dev/null
43
44# URL Filter && Update Accelerator
45%nightly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.daily
46%weekly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.weekly
47%monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
48%nightly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.daily
49%weekly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.weekly
50%monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
51
52# fireinfo
53%nightly,random * 23-4 /usr/bin/sendprofile >/dev/null 2>&1
54
55# pakfire
56%nightly,random * 23-4 /usr/local/bin/pakfire update >/dev/null 2>&1
57
58# Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
5900 3 * 3 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
6000 2 * 10-11 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
61
62# Update GeoIP database once a month.
63%monthly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/xt_geoip_update >/dev/null 2>&1
64
65# Retry sending spooled mails regularly
66%hourly * /usr/sbin/dma -q
67
68# Cleanup captive clients
69%hourly * /usr/bin/captive-cleanup
70
71# Reload captive firewall rules
72%nightly * 23-1 /usr/local/bin/captivectrl >/dev/null
73
74# Cleanup the mail spool directory
75%weekly * * /usr/sbin/dma-cleanup-spool
76
77# Update DNS trust anchor
78%daily,random * * @runas(nobody) /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem