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