2006-04-26 12:28:53 +00:00
|
|
|
# Every day at 4am, produce raw statistics
|
2010-10-11 09:24:07 +00:00
|
|
|
0 4 * * * root /usr/lib/alternc/rawstat.daily
|
2006-04-26 12:28:53 +00:00
|
|
|
|
|
|
|
# Every day at 5am and every week at 4am, make requested SQL backups
|
2010-10-11 09:35:07 +00:00
|
|
|
0 5 * * * www-data /usr/lib/alternc/sqlbackup.sh -t daily
|
|
|
|
0 4 * * 0 www-data /usr/lib/alternc/sqlbackup.sh -t weekly
|
2006-04-26 12:28:53 +00:00
|
|
|
|
|
|
|
# Every 5 minutes, spool waiting domain changes
|
|
|
|
*/5 * * * * root /usr/lib/alternc/update_domains.sh
|
|
|
|
|
|
|
|
# Every hour, check for slave_dns refreshes
|
|
|
|
5 * * * * root /usr/lib/alternc/slave_dns
|
2006-04-26 14:26:21 +00:00
|
|
|
|
|
|
|
# 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 * * * www-data /usr/lib/alternc/spoolsize.php
|
2008-10-31 17:55:06 +00:00
|
|
|
|
2011-06-04 09:33:47 +00:00
|
|
|
# Once a week at 7am, optimise the AlternC database
|
|
|
|
0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize
|
2011-09-30 14:09:03 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|