[nsd-users] logfile empty after logrotate

Matthijs Mekking matthijs at NLnetLabs.nl
Thu Oct 14 10:06:39 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andreas,

There are two possible causes I can come up with:
1. Is the logfile inside the chroot? If not, file rotation is disabled.
   Should not be an issue if you don't use chroot.

2. Did you reload nsd? The new log file is only reopened when reloading
   nsd.

Best regards,

Matthijs


On 10/14/2010 11:56 AM, Andreas Schulze wrote:
> Am 13.10.2010 10:30 schrieb Jaap Akkerhuis:
>>
>> 	[found in a spam trap].
> Thanks for forwaring my mail to the list
> I sent from an unsubscribed Account :-(
> 
> But the problem is current with 3.2.6
> - running as daemon
> - logging to a file
> - logrotate moves the logfile away and send SIGHUP
> - old logfile is still open ( verified with lsof )
> - new logfile ( created with right permissions ) is still empty
> 
> What may I did wrong ??
> 
>>
>> Hi,
>>
>> I setup nsd to log i a separate logfile. I also setup logrotate.
>> After logrotate moved away the old logfile it sends a SIGHUP
>> killall -HUP nsd
>>
>> But the logfile is not reopend by nsd.
>>
>> How do I setup a daily rotated log ?
>>
>> I also tried to run nsd nonforking with -d and get the log from stderr
>> This works as long nsd is a master
>>
>> If nsd is setup as slave and receive an update from the master
>> then i found new nsd processes which are no longer childs of
>> the nsd -d process...
>>
>> This makes it difficult to run nsd nder control of a supervisor
>> like djb's daemontools or runit
>>
>> Thanks
>> Andreas
>>
>> -- 
>> ########################################################################
>> #
>> # Andreas Schulze
>> # https://andreasschulze.de
>> # 
>> # GnuPG Key-ID: A7DBA67F, https://andreasschulze.de/sca.asc
>> # GnuPG Fingerprint: 14C1 39A8 CE6D 6BE0 28C6 5652 03B5 6793 A7DB A67F
>> #
>> # $Id: .signature,v 1.3 2007-12-27 21:13:36 sca Exp $
>> ########################################################################
>> _______________________________________________
>> nsd-users mailing list
>> nsd-users at NLnetLabs.nl
>> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMttYvAAoJEA8yVCPsQCW5L+sH/i8tIBD4EbLKWvL//A9R2CJt
5Zi1EBqSZksYTZKWrWxB6am8HWaB6zq0dfNn0KjVTvgICP05bFwBshgIBxIWSYHF
6XgmWOTewslR+ACrQeRX0/PqVoP5N1ok4pef9iiIx9YHTiKfME+9fnWm2p3l8Z02
xAO23jzbTQY5slML9xNcmQJ0sdwpQzEnTu5vEvRxv0pKONyMtu7gGF913Yq6LNMB
YU9PAbbbH45XJ5NVvr3zWQknpKSabsFTuQiB5+paLDlHSf3IeOMe9N7+u+H8bFhV
2Y4DQ4FV3HXC6Ry4IoJAxdu1j+2DOkKN0WHmFJ2wfEnXlmnqPQrqyUMsVsSU90k=
=73HH
-----END PGP SIGNATURE-----



More information about the nsd-users mailing list