]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/cron/crontab
Merge remote-tracking branch 'alfh/feature_vnstat_1.11' into beyond-next
[people/teissler/ipfire-2.x.git] / config / cron / crontab
index 2fe0eb5ec5f4b5d30242c94d8ea9ec168db2e58b..92c3a78ba74cf9267daaadd49d2bd6c5d362877b 100644 (file)
@@ -1,36 +1,61 @@
 #
-# $Id: crontab,v 1.9.2.5 2005/08/16 05:39:23 gespinasse Exp $
+# crontab for ipfire
 #
 SHELL=/bin/bash
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
-MAILTO=root
+MAILTO=
 HOME=/
 
+# Do all jobs in this directories
+*/1 * * * *    test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.minutely
+*/5 * * * *    test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.cyclic
+01 * * * *     test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.hourly
+&nice(10),bootrun 25 1 * * *   test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.daily
+&nice(10),bootrun 47 2 * * 1   test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly
+&nice(10),bootrun 52 3 1 * *   test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.monthly
+
 # Log rotation
 01 * * * *     /usr/sbin/logrotate /etc/logrotate.conf
 
-# Backup logs to flashdisk
-01 * * * *     [ -f "/etc/FLASH" ] && /etc/rc.d/rc.flash.down
-
 # Set time
 */5 * * * *    /usr/local/bin/timecheck > /dev/null 2>&1
 
-# Summarize ip accounting info:
-2 1 * * *      /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the day 2 days ago" >/dev/null
-3 1 * * 0      /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4 weeks ago" >/dev/null
-4 1 1 2 *      /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2 years ago" >/dev/null
-
 # Make some nice graphs
 */5 * * * *    /usr/local/bin/makegraphs >/dev/null
+17 5 * * *     /etc/init.d/tmpfs backup >/dev/null
 
 # Force update the dynamic dns registration once a week
 # Force update even if IP has not changed once a month if 'minimize update' selected in GUI
 # to avoid account declared as dead
-*/5 * * * *    [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl
-9 2 * * 0      [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl -f
-3 2 1 * *      [ -f "/var/ipcop/red/active" ] && /usr/local/bin/setddns.pl -f -m
+*/5 * * * *    [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl
+9 2 * * 0      [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f
+3 2 1 * *      [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f -m
 
 # Logwatch
 01 0 * * *     /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
-               LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipcop/logging/settings); \
+               LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p' /var/ipfire/logging/settings); \
                find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
+
+# hddshutdown
+*/30 * * * *   /usr/local/bin/hddshutdown >/dev/null
+
+# connection-scheduler
+*/5 * * * *    /usr/local/bin/connscheduler timer > /dev/null
+
+# URL Filter && Update Accelerator
+%nightly * 3-5   /var/ipfire/urlfilter/autoupdate/cron.daily
+%weekly  * 3-5   /var/ipfire/urlfilter/autoupdate/cron.weekly
+%monthly * 3-5 * /var/ipfire/urlfilter/autoupdate/cron.monthly
+%nightly * 3-5   /var/ipfire/updatexlrator/autocheck/cron.daily
+%weekly  * 3-5   /var/ipfire/updatexlrator/autocheck/cron.weekly
+%monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
+
+# fireinfo
+%nightly,random * 23-4 /usr/bin/sendprofile >/dev/null 2>&1
+
+# pakfire
+%nightly,random * 23-4 /usr/local/bin/pakfire update >/dev/null 2>&1
+
+# Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
+00 3 * 3 0          /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
+00 2 * 10-11 0      /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl