]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - config/cron/crontab
Sourceforge-Mirror wieder geƤndert.
[people/pmueller/ipfire-2.x.git] / config / cron / crontab
CommitLineData
cd1a2927
MT
1#
2# $Id: crontab,v 1.9.2.5 2005/08/16 05:39:23 gespinasse Exp $
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
12# Backup logs to flashdisk
1301 * * * * [ -f "/etc/FLASH" ] && /etc/rc.d/rc.flash.down
14
15# Set time
16*/5 * * * * /usr/local/bin/timecheck > /dev/null 2>&1
17
18# Summarize ip accounting info:
192 1 * * * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the day 2 days ago" >/dev/null
203 1 * * 0 /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4 weeks ago" >/dev/null
214 1 1 2 * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2 years ago" >/dev/null
22
23# Make some nice graphs
24*/5 * * * * /usr/local/bin/makegraphs >/dev/null
25
26# Force update the dynamic dns registration once a week
27# Force update even if IP has not changed once a month if 'minimize update' selected in GUI
28# to avoid account declared as dead
29*/5 * * * * [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl
309 2 * * 0 [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl -f
313 2 1 * * [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl -f -m
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/ipcop/logging/settings); \
36 find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'