From a000249ff98debdc5cd0c9a18a51beede1712d88 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 26 Nov 2012 11:02:28 +0100 Subject: [PATCH] fcron: Run weekly tasks on Monday. --- config/cron/crontab | 2 +- config/rootfiles/core/65/filelists/files | 1 + config/rootfiles/core/65/update.sh | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/cron/crontab b/config/cron/crontab index 5cca1facc4..ad90b07ca9 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -11,7 +11,7 @@ HOME=/ */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 * * 0 test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly +&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 diff --git a/config/rootfiles/core/65/filelists/files b/config/rootfiles/core/65/filelists/files index f481777940..d4067337e7 100644 --- a/config/rootfiles/core/65/filelists/files +++ b/config/rootfiles/core/65/filelists/files @@ -5,3 +5,4 @@ srv/web/ipfire/cgi-bin/ovpnmain.cgi usr/sbin/ovpn-ccd-convert var/ipfire/general-functions.pl var/ipfire/langs +var/spool/cron/root.orig diff --git a/config/rootfiles/core/65/update.sh b/config/rootfiles/core/65/update.sh index 85ab2e9473..729e764f0a 100644 --- a/config/rootfiles/core/65/update.sh +++ b/config/rootfiles/core/65/update.sh @@ -49,6 +49,9 @@ perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" # Convert OpenVPN RW connections. /usr/sbin/ovpn-ccd-convert +# Re-read crontab. +fcrontab -z &>/dev/null + #Rebuild module dep's #arch=`uname -m` #if [ ${arch::3} == "arm" ]; then -- 2.39.2