Logrotate
# cat /etc/logrotate.d/prod
/production/www/clients/spf/home/www/current/docroot/var/logs/prod.log{
daily
missingok
compress
delaycompress
notifempty
copytruncate
create 644 nom nom
}
/production/www/clients/spf/home/www/current/docroot/var/logs/dev.log{
daily
missingok
compress
delaycompress
notifempty
copytruncate
create 644 nom nom
}
Pour lancer logrotate:
logrotate -f /etc/logrotate.d/(ta conf)