Paul Martin wrote:
severity 419833 normal
tag 419833 moreinfo
thanks
On Wed, Apr 18, 2007 at 08:29:08AM +0200, Rudy Gevaert wrote:
Sometimes when logrotate rotates our bind9 log files, it doesn't start
bind9 again. Altought it stops it. My bind9 logrotate file:
/var/log/named/named.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 644 dnsadm arcs
postrotate
if [ -f /var/run/bind/run/named.pid ]; then
/etc/init.d/bind9 restart > /dev/null
fi
endscript
}
Running /etc/init.d/bind9 restart myself works.
That script is one you've written yourself? The logfile you're generating
and the logrotate script you give there aren't standard.
The logrotate script is one I've written myself.
Might I suggest you use two invocations of "rndc querylog" instead of
restarting the server?
I don't see what running querylog would do. Do you mean: rndc reload?
> Might I suggest you redirect the output of
"/etc/init.d/bind9 restart" to somewhere other than /dev/null, to try to
find out whether it is giving an error?
Ok, I removed it (and it happened again this morning), so it would be
mailed to root:
/etc/cron.daily/logrotate:
error: bind9:8 unknown group 'dnsadm'
run-parts: /etc/cron.daily/logrotate exited with return code 1
So it fails on:
create 644 dnsadm arcs
But:
paling:/etc/logrotate.d# id dnsadm
uid=923(dnsadm) gid=15000(arcs) groups=15000(arcs),4(adm)
And in the man I see:
create mode owner group
On a busy site, bind9 may take more than 2 seconds to save its state and
release its UDP sockets. (Have a look at /etc/init.d/bind9 to see how it
implements the restart function.)
This is very unlikely to be a fault in logrotate.
Thanks for your help!
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen Systems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]