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
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to