]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - config/cron/crontab
Merge remote-tracking branch 'mfischer/slang' into next
[people/pmueller/ipfire-2.x.git] / config / cron / crontab
CommitLineData
cd1a2927 1#
4e565351 2# crontab for ipfire
cd1a2927
MT
3#
4SHELL=/bin/bash
5PATH=/sbin:/bin:/usr/sbin:/usr/bin
841e825e 6MAILTO=
cd1a2927
MT
7HOME=/
8
649fd295
MT
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
5c8cfc99 13&nice(10),bootrun 25 1 * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.daily
a000249f 14&nice(10),bootrun 47 2 * * 1 test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly
5c8cfc99 15&nice(10),bootrun 52 3 1 * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.monthly
649fd295 16
cd1a2927
MT
17# Log rotation
1801 * * * * /usr/sbin/logrotate /etc/logrotate.conf
19
cd1a2927
MT
20# Set time
21*/5 * * * * /usr/local/bin/timecheck > /dev/null 2>&1
22
cd1a2927
MT
23# Make some nice graphs
24*/5 * * * * /usr/local/bin/makegraphs >/dev/null
c2670d8a 2517 5 * * * /etc/init.d/tmpfs backup >/dev/null
cd1a2927 26
a6794072 27# Update dynamic DNS records every five minutes.
cfcfb947 28# Force an update once a month
a6794072 29*/5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all
cfcfb947 303 2 1 * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all --force
cd1a2927
MT
31
32# Logwatch
3301 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
33a31f1a 34 LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
cd1a2927 35 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
6c666a3b
MT
36
37# hddshutdown
20f92a61 38*/30 * * * * /usr/local/bin/hddshutdown >/dev/null
10e4f239 39
46c01c09
MT
40# connection-scheduler
41*/5 * * * * /usr/local/bin/connscheduler timer > /dev/null
42
43# URL Filter && Update Accelerator
10e4f239
MT
44%nightly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.daily
45%weekly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.weekly
46%monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
46c01c09
MT
47%nightly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.daily
48%weekly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.weekly
49%monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
77d211a7 50
0652dff7
MT
51# fireinfo
52%nightly,random * 23-4 /usr/bin/sendprofile >/dev/null 2>&1
e959976b
MT
53
54# pakfire
55%nightly,random * 23-4 /usr/local/bin/pakfire update >/dev/null 2>&1
4944049e
AM
56
57# Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
64474e39
MT
5800 3 * 3 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
5900 2 * 10-11 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
0909c0d1
SS
60
61# Update GeoIP database once a month.
ef4edcfb 62%monthly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/xt_geoip_update >/dev/null 2>&1