PDA

View Full Version : logrotate named


hogman23
August 9th, 2006, 04:46 PM
Guys,
I need to setup logrotate to rotate my named logs. I have named.log, lame.log, etc. Is anyone doing this? Can someone tell me how to accomplish it?
Thanks

hogman23
August 9th, 2006, 06:36 PM
Ok, I figured it out. For anyone wanting to do this, go to /etc/logrotate.conf and add the following, editing the log locations to wherever they are being written.

/var/log/named/* {
daily
rotate 1
missingok
# postrotate
# /bin/kill -HUP `cat /var/run/named.pid 2> /dev/null` 2> /dev/null || true
# endscript
}