Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
alternc.cron.d
Go to the documentation of this file.
1 
2 # Create /var/run/ folder : it may be a ramdrive
3 @reboot root mkdir -p /var/run/alternc && chown alterncpanel:alterncpanel /var/run/alternc
4 
5 # Every 2 days compress log files
6 0 4 * * * alterncpanel /usr/lib/alternc/compress_logs.sh
7 
8 # Suppress log files older than one year
9 0 4 * * * alterncpanel /usr/lib/alternc/delete_logs.sh
10 
11 # Every day at 5am and every week at 4am, make requested SQL backups
12 0 5 * * * alterncpanel /usr/lib/alternc/sqlbackup.sh -t daily
13 0 4 * * 0 alterncpanel /usr/lib/alternc/sqlbackup.sh -t weekly
14 
15 # Every 5 minutes, spool waiting domain changes
16 */5 * * * * root /usr/lib/alternc/update_domains.sh
17 
18 # Every 5 minutes, do mails actions
19 */5 * * * * root /usr/lib/alternc/update_mails.sh
20 
21 # Every hour, check for slave_dns refreshes
22 5 * * * * root /usr/lib/alternc/slave_dns
23 
24 # Every day at 2am, compute web, mail and db space usage per account.
25 # You may put this computing every week only or on your filer on busy services.
26 0 2 * * * alterncpanel /usr/lib/alternc/spoolsize.php
27 
28 # Once a week at 7am, optimise the AlternC database
29 0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize
30 
31 # Every 30 minutes, do cron_users actions
32 00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh
33 
34 # Every 20 minutes, do actions
35 00,20 * * * * root /usr/lib/alternc/do_actions.php
36 
37 # Every hour, stop expired VMs
38 10 * * * * alterncpanel /usr/lib/alternc/lxc_stopexpired.php