|
Revision 2433, 1.0 kB
(checked in by anarcat, 3 weeks ago)
|
move sessions to a shared /var/alternc/sessions
|
| Line | |
|---|
| 1 |
# Every day at 4am, produce raw statistics |
|---|
| 2 |
0 4 * * * www-data /usr/lib/alternc/rawstat.daily |
|---|
| 3 |
|
|---|
| 4 |
# Every day at 5am and every week at 4am, make requested SQL backups |
|---|
| 5 |
0 5 * * * www-data /usr/lib/alternc/sqlbackup.sh daily |
|---|
| 6 |
0 4 * * 0 www-data /usr/lib/alternc/sqlbackup.sh weekly |
|---|
| 7 |
|
|---|
| 8 |
# Every 5 minutes, spool waiting domain changes |
|---|
| 9 |
*/5 * * * * root /usr/lib/alternc/update_domains.sh |
|---|
| 10 |
|
|---|
| 11 |
# Every hour, check for slave_dns refreshes |
|---|
| 12 |
5 * * * * root /usr/lib/alternc/slave_dns |
|---|
| 13 |
|
|---|
| 14 |
# Every day at 2am, compute web, mail and db space usage per account. |
|---|
| 15 |
# You may put this computing every week only or on your filer on busy services. |
|---|
| 16 |
0 2 * * * www-data /usr/lib/alternc/spoolsize.php |
|---|
| 17 |
|
|---|
| 18 |
# alternc-specific PHP sessions cleanup routine |
|---|
| 19 |
# copied from php5's |
|---|
| 20 |
09,39 * * * * root [ -d /var/alternc/sessions ] && find /var/alternc/sessions/ -type f -cmin +$(if [ -e /usr/lib/php4/maxlifetime ] ; then /usr/lib/php4/maxlifetime ; else /usr/lib/php5/maxlifetime ; fi) -print0 | xargs -r -0 rm |
|---|