Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1913 → Rev 1914

/alcasar.sh
1693,7 → 1693,7
# 'alcasar-monthly_tot_stat' (everyday at 01h05 pm) : aggregating the monthly connections of users (write in table 'mtotacct')
# 'alcasar-truncate_raddact' (every month, the first at 01h10 pm) : removing the log sessions of users older than 365 days
# 'alcasar-clean_radacct' (every month, the first at 01h15 pm) : closing the sessions openned for more than 30 days
cat << EOF > /etc/cron.d/freeradius-web
cat << EOF > /etc/cron.d/alcasar-connections-stats
1 1 * * * root $DIR_DEST_BIN/alcasar-tot_stats > /dev/null 2>&1
5 1 * * * root $DIR_DEST_BIN/alcasar-monthly_tot_stats > /dev/null 2>&1
10 1 1 * * root $DIR_DEST_BIN/alcasar-truncate_radacct > /dev/null 2>&1
1713,8 → 1713,8
EOF
 
# Enabling category update from rsync
cat << EOF > /etc/cron.d/alcasar-update_cat
# activation de la mise a jour des categories. Si le fichier /usr/local/etc/update_cat.conf est vide. On ne met pas à jour.
cat << EOF > /etc/cron.d/alcasar-rsync_bl
# mise a jour automatique des categories de la BL. Si le fichier /usr/local/etc/update_cat.conf est vide, on ne fait rien.
0 */12 * * * root $DIR_DEST_BIN/alcasar-bl.sh --update_cat > /dev/null 2>&1
EOF