alternc.cron.d 1.34 KB
Newer Older
1
# Every day at 4am, produce raw statistics
2
0 4 * * *	root	/usr/lib/alternc/rawstat.daily
3

Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
4
# Every 2 days compress log files
5
0 4 * * *	alterncpanel	/usr/lib/alternc/compress_logs.sh
Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
6 7

# Suppress log files older than one year
8
0 4 * * *	alterncpanel	/usr/lib/alternc/delete_logs.sh
Steven Mondji-Lerider's avatar
Steven Mondji-Lerider committed
9

10
# Every day at 5am and every week at 4am, make requested SQL backups
11 12
0 5 * * *	alterncpanel	/usr/lib/alternc/sqlbackup.sh -t daily
0 4 * * 0	alterncpanel	/usr/lib/alternc/sqlbackup.sh -t weekly
13 14 15 16

# Every 5 minutes, spool waiting domain changes
*/5 * * * *	root		/usr/lib/alternc/update_domains.sh

Alan Garcia's avatar
Alan Garcia committed
17 18 19
# Every 5 minutes, delete mails
*/5 * * * *	root		/usr/lib/alternc/mail_deletion.sh

20 21
# Every hour, check for slave_dns refreshes
5 * * * *       root            /usr/lib/alternc/slave_dns
22 23 24

# 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.
domi's avatar
 
domi committed
25
0 2 * * *   alterncpanel /usr/lib/alternc/spoolsize.php
26

27 28
# Once a week at 7am, optimise the AlternC database
0 1 * * 7   alterncpanel  /usr/lib/alternc/alternc-dboptimize
29 30 31 32 33

# 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