1183,20 → 1183,21 |
EOF |
[ -e /etc/anacrontab.default ] || cp /etc/anacrontab /etc/anacrontab.default |
cat <<EOF >> /etc/anacrontab |
7 10 cron.logExport nice /etc/cron.d/export_log |
7 15 cron.logClean nice /etc/cron.d/clean_log |
7 20 cron.importClean nice /etc/cron.d/clean_import |
7 8 cron.MysqlDump nice /etc/cron.d/alcasar-mysql |
7 10 cron.logExport nice /etc/cron.d/alcasar-export_log |
7 15 cron.logClean nice /etc/cron.d/alcasar-clean_log |
7 20 cron.importClean nice /etc/cron.d/alcasar-clean_import |
EOF |
# suppression des fichiers de logs de plus d'un an (tous les lundi à 4h30) |
cat <<EOF > /etc/cron.d/clean_log |
cat <<EOF > /etc/cron.d/alcasar-clean_log |
30 4 * * 1 root $DIR_DEST_BIN/alcasar-log-clean.sh |
EOF |
# export de la base des usagers (tous les lundi à 4h45) |
cat <<EOF > /etc/cron.d/mysql |
cat <<EOF > /etc/cron.d/alcasar-mysql |
45 4 * * 1 root $DIR_DEST_SBIN/alcasar-mysql.sh -dump |
EOF |
# export des log squid, firewall et apache (tous les lundi à 5h00) |
cat <<EOF > /etc/cron.d/export_log |
cat <<EOF > /etc/cron.d/alcasar-export_log |
#!/bin/sh |
00 5 * * 1 root $DIR_DEST_BIN/alcasar-log-export.sh |
EOF |
1206,7 → 1207,7 |
*/30 * * * * root $DIR_ACC/awstats/awstats.pl -config=localhost -update >/dev/null 2>&1 |
EOF |
# suppression des fichiers de mots de passe lors d'imports massifs par fichier de plus de 24h |
cat << EOF > /etc/cron.d/clean_import |
cat << EOF > /etc/cron.d/alcasar-clean_import |
30 * * * * root $DIR_DEST_BIN/alcasar-import-clean.sh |
EOF |
# mise à jour des stats de connexion (accounting). Scripts provenant de "dialupadmin" (rpm freeradius-web) (cf. wiki.freeradius.org/Dialup_admin). |