From 0f18155bd2e1b723e850f1dfe4808718b75cb6f8 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Thu, 8 Nov 2012 10:35:10 +0000 Subject: [PATCH] Fix #1363 : Adding cron_users.sh to alternc's cron --- debian/alternc.cron.d | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/alternc.cron.d b/debian/alternc.cron.d index eb37df52..9b24498f 100644 --- a/debian/alternc.cron.d +++ b/debian/alternc.cron.d @@ -15,16 +15,18 @@ */5 * * * * root /usr/lib/alternc/update_mails.sh # Every hour, check for slave_dns refreshes -5 * * * * root /usr/lib/alternc/slave_dns +5 * * * * root /usr/lib/alternc/slave_dns # Every day at 2am, compute web, mail and db space usage per account. # You may put this computing every week only or on your filer on busy services. -0 2 * * * alterncpanel /usr/lib/alternc/spoolsize.php +0 2 * * * alterncpanel /usr/lib/alternc/spoolsize.php # Once a week at 7am, optimise the AlternC database -0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize +0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize # We change the session directory... debian's patch modified : # Look for and purge old sessions every 30 minutes -09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/alternc/sessions/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete +09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/alternc/sessions/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete +# Every 30 minutes, do cron_users actions +00,30 * * * * root /usr/lib/alternc/cron_users.sh