2013-04-23 15:11:00 +00:00
|
|
|
|
2018-06-23 14:28:50 +00:00
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
|
2018-07-04 15:42:42 +00:00
|
|
|
# Create /run/ folder : it may be a ramdrive
|
|
|
|
@reboot root mkdir -p /run/alternc && chown alterncpanel:alterncpanel /run/alternc
|
2013-04-23 15:11:00 +00:00
|
|
|
|
2012-08-21 18:25:56 +00:00
|
|
|
# Every 2 days compress log files
|
2012-08-24 15:09:57 +00:00
|
|
|
0 4 * * * alterncpanel /usr/lib/alternc/compress_logs.sh
|
2012-08-21 18:25:56 +00:00
|
|
|
|
|
|
|
# Suppress log files older than one year
|
2012-08-24 15:09:57 +00:00
|
|
|
0 4 * * * alterncpanel /usr/lib/alternc/delete_logs.sh
|
2012-08-21 18:25:56 +00:00
|
|
|
|
2006-04-26 12:28:53 +00:00
|
|
|
# Every day at 5am and every week at 4am, make requested SQL backups
|
2012-08-24 15:09:57 +00:00
|
|
|
0 5 * * * alterncpanel /usr/lib/alternc/sqlbackup.sh -t daily
|
|
|
|
0 4 * * 0 alterncpanel /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
|
|
|
|
|
2012-08-26 09:26:04 +00:00
|
|
|
# Every 5 minutes, do mails actions
|
|
|
|
*/5 * * * * root /usr/lib/alternc/update_mails.sh
|
2012-08-25 10:35:23 +00:00
|
|
|
|
2006-04-26 12:28:53 +00:00
|
|
|
# Every hour, check for slave_dns refreshes
|
2012-11-08 10:35:10 +00:00
|
|
|
5 * * * * root /usr/lib/alternc/slave_dns
|
2006-04-26 14:26:21 +00:00
|
|
|
|
2017-08-17 19:32:21 +00:00
|
|
|
# Every day at 2am, compute web, mailman and db space usage per account.
|
2006-04-26 14:26:21 +00:00
|
|
|
# You may put this computing every week only or on your filer on busy services.
|
2016-03-03 12:57:13 +00:00
|
|
|
0 2 * * * alterncpanel /usr/lib/alternc/spoolsize.php 2>&1 > /dev/null
|
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
|
2012-11-08 10:35:10 +00:00
|
|
|
0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize
|
2011-09-30 14:09:03 +00:00
|
|
|
|
2012-11-08 10:35:10 +00:00
|
|
|
# Every 30 minutes, do cron_users actions
|
2012-11-08 10:50:16 +00:00
|
|
|
00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh
|
2013-04-22 14:45:45 +00:00
|
|
|
|
2013-04-25 13:05:27 +00:00
|
|
|
# Every 20 minutes, do actions
|
2016-07-09 18:51:06 +00:00
|
|
|
*/20 * * * * root /usr/lib/alternc/do_actions.php
|
2013-04-25 13:05:27 +00:00
|
|
|
|
2017-08-17 19:32:21 +00:00
|
|
|
# Calculate the mail accounts size once a week beacause the dovecot plugin to do that is not precise (see ticket AlternC #168)
|
|
|
|
# Every Sunday at 4am
|
|
|
|
0 4 * * 0 root /usr/lib/alternc/update_quota_mail.sh -a
|
2018-06-23 14:28:50 +00:00
|
|
|
|
|
|
|
# every minute, search for new certificates
|
|
|
|
* * * * * root /usr/lib/alternc/cron_ssl.sh
|
|
|
|
|