
Não sei por que esse arquivo específico não está sendo girado. Não é um diretório. Alguma ideia?
O tamanho do arquivo firewalld:
$ ls -alh /var/log
-rw-r--r--. 1 root root 134M Jan 31 13:49 firewalld
A estrofe relevante de /etc/logrotate.conf:
/var/log/firewalld {
hourly
copytruncate
maxsize 1M
missingok
rotate 8
compress
notifempty
nomail
noolddir
}
O comando executado:
$ sudo logrotate -fv /etc/logrotate.conf
rotating pattern: /var/log/firewalld forced from command line (8 rotations)
empty log files are not rotated, log files >= 1048576 are rotated earlier, old logs are removed
No logs found. Rotation not needed.
set default create context
O tamanho resultante do arquivo firewalld:
$ ls -alh /var/log
-rw-r--r--. 1 root root 134M Jan 31 13:49 firewalld
Responder1
Encontrei a resposta neste post:https://stackoverflow.com/posts/43398163/timeline
Aparentemente, a opção -v é igual à opção -n; em outras palavras, o v-switch não permitirá que o logrotate gire os logs.