]> git.ipfire.org Git - ipfire-2.x.git/blame - config/cron/crontab
HinzugefĆ¼gt:
[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
6MAILTO=root
7HOME=/
8
9# Log rotation
1001 * * * * /usr/sbin/logrotate /etc/logrotate.conf
11
cd1a2927
MT
12# Set time
13*/5 * * * * /usr/local/bin/timecheck > /dev/null 2>&1
14
15# Summarize ip accounting info:
162 1 * * * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the day 2 days ago" >/dev/null
173 1 * * 0 /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4 weeks ago" >/dev/null
184 1 1 2 * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2 years ago" >/dev/null
19
20# Make some nice graphs
21*/5 * * * * /usr/local/bin/makegraphs >/dev/null
22
23# Force update the dynamic dns registration once a week
24# Force update even if IP has not changed once a month if 'minimize update' selected in GUI
25# to avoid account declared as dead
33a31f1a
MT
26*/5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl
279 2 * * 0 [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f
283 2 1 * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f -m
cd1a2927
MT
29
30# Logwatch
3101 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
33a31f1a 32 LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
cd1a2927 33 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
6c666a3b
MT
34
35# hddshutdown
4e565351 3602 * * * * /usr/local/bin/hddshutdown >/dev/null
10e4f239
MT
37
38# URL Filter
39%nightly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.daily
40%weekly * 3-5 /var/ipfire/urlfilter/autoupdate/cron.weekly
41%monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
4e565351
MT
42
43# connection-scheduler
44*/5 * * * * /usr/local/bin/connscheduler timer > /dev/null