Help with logrotate and bind
David Forrest
drf at maplepark.com
Fri Feb 26 15:18:24 UTC 2010
On Fri, 26 Feb 2010, Diosney Sarmiento Herrera wrote:
> H
> i!
>
> I am trying to rotate my named logfile with logrotate and I
> configured it as I show:
>
> #
> # Logrotate fragment for bind.
> #
> /var/log/named.log {
> daily
> ifempty
> compress
> delaycompress
> dateext
> rotate 14
> missingok
> nocreate
> }
>
> The problem is that when the log is rotated the file
> "/var/log/named.log" dissapear.
>
> How I can fix this issue?
>
> By the way, there is a need to include a prerotate and postrotate
> scripts?
>
> Thanks in advance!
>
>
You have nocreate specified and that may be the problem. I have:
create 0644 named named
in my logrotate.conf and it rotates properly.
And I have no pre or postrotate scripts.
Dave
--
David Forrest
Maple Park Development Corporation
St. Louis, Missouri
More information about the bind-users
mailing list