
bussaca
(usa Debian)
Enviado em 11/11/2011 - 11:20h
Venho enfrentando um problema quanto ao rotacionamento de log do freeradius.
Preciso que ele atue semanalmente, mas o seu rotacionamento está ocorrendo diariamente.
Não entendo o que possa estar ocorrendo.
Se alguém possuir algum problema parecido e que tenha solucionado, por favor, compartilhe.
Tenho aplicado as seguintes configurações:
No arquivo logrotate.conf não alterei nenhuma configuração:
#vi /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
Apenas alterei as cofigurações do arquivo:
#vi /etc/logrotate.d/freeradius
/var/log/freeradius/*.log {
weekly
rotate 4
compress
delaycompress
missingok
notifempty
postrotate
invoke-rc.d --quiet freeradius reload >/dev/null
endscript
create 0640 root adm
}
Agradeço a atenção desde já.