Alternc  latest
Alternc logiel libre pour l'hébergement
alternc.cron.d
Go to the documentation of this file.
1 
2 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
3 
4 # Create /run/ folder : it may be a ramdrive
5 @reboot root mkdir -p /run/alternc && chown alterncpanel:alterncpanel /run/alternc
6 
7 # Every 2 days compress log files
8 0 4 * * * alterncpanel /usr/lib/alternc/compress_logs.sh
9 
10 # Suppress log files older than one year
11 0 4 * * * alterncpanel /usr/lib/alternc/delete_logs.sh
12 
13 # Every day at 5am and every week at 4am, make requested SQL backups
14 0 5 * * * alterncpanel /usr/lib/alternc/sqlbackup.sh -t daily
15 0 4 * * 0 alterncpanel /usr/lib/alternc/sqlbackup.sh -t weekly
16 
17 # Every minute, spool waiting domain changes
18 * * * * * root /usr/lib/alternc/update_domains.php
19 
20 # Every 5 minutes, do mails actions
21 */5 * * * * root /usr/lib/alternc/update_mails.sh
22 
23 # Every hour, check for slave_dns refreshes
24 5 * * * * root /usr/lib/alternc/slave_dns
25 
26 # Every day at 2am, compute web, mailman and db space usage per account.
27 # You may put this computing every week only or on your filer on busy services.
28 0 2 * * * alterncpanel /usr/lib/alternc/spoolsize.php 2>&1 > /dev/null
29 
30 # Once a week at 7am, optimise the AlternC database
31 0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize
32 
33 # Every 30 minutes, do cron_users actions
34 00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh
35 
36 # Every 20 minutes, do actions
37 */20 * * * * root /usr/lib/alternc/do_actions.php
38 
39 # Calculate the mail accounts size once a week beacause the dovecot plugin to do that is not precise (see ticket AlternC #168)
40 # Every Sunday at 4am
41 0 4 * * 0 root /usr/lib/alternc/update_quota_mail.sh -a
42 
43 # every minute, search for new certificates
44 * * * * * root /usr/lib/alternc/cron_ssl.sh
45 
PATH
Definition: alternc.cron.d:2
make requested SQL backups ***alterncpanel usr lib alternc sqlbackup.sh t daily **alterncpanel usr lib alternc sqlbackup.sh t weekly *****root usr lib alternc update_domains.php *****root usr lib alternc update_mails.sh ****root usr lib alternc slave_dns ***alterncpanel usr lib alternc spoolsize.php &dev null **alterncpanel usr lib alternc alternc dboptimize
Definition: alternc.cron.d:34