Isso porque você está usando -f
para forçar a rotação do log no comando cron job abaixo:
50 */1 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
Se você ler man logrotate
e observe o seguinte parágrafo:
-f, --force
Tells logrotate to force the rotation, even if it doesn't think this is necessary. Sometimes this is useful after adding new entries to a logrotate config file, or if old log files have been removed by hand, as the new files will be created, and logging will continue correctly.
Isso fica claro no timestamp dos arquivos criados. Se você observar alguns arquivos como os seguintes:
-rw------- 1 admin root 14349 2013-01-08 07:50 dir300.log.4.gz
-rw------- 1 admin root 14396 2013-01-08 06:50 dir300.log.5.gz
-rw------- 1 admin root 14268 2013-01-08 05:50 dir300.log.6.gz
-rw------- 1 admin root 14148 2013-01-08 04:50 dir300.log.7.gz
-rw------- 1 admin root 14347 2013-01-08 03:50 dir300.log.8.gz
-rw------- 1 admin root 14225 2013-01-08 02:50 dir300.log.9.gz
Você pode ver facilmente que cada execução da tarefa cron cria um novo arquivo. Novamente, isso é por causa da opção -f
.