[nsd-users] logfile empty after logrotate

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


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

I did mean nsdc reload yes.

Another possibility: nsd dropped privileges to user nsd and has no
permission to append to file anymore.

You might want to run nsd with a higher verbosity level (for example:
nsd -v 3) or configure nsd with --enable-checking and run nsd with a
higher debug level (for example: nsd -F 0xffff -L 3), to see what is
going on.

Best regards,

Matthijs



On 10/14/2010 03:40 PM, Andreas Schulze wrote:
> Am 14.10.2010 12:06 schrieb Matthijs Mekking:
>> 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.
> no chrooting ...
>>
>> 2. Did you reload nsd? The new log file is only reopened when reloading
>>    nsd.
> what do you exactly mean with "reloading" ?
> nsdc reload also only gives nsd a sighup


> 
> 
> andreas
> 
>>
>> 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-----
>> _______________________________________________
>> 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/

iQEcBAEBAgAGBQJMtxDGAAoJEA8yVCPsQCW5dHwH/AncvJMmkXkzUyM6feeY2EL4
t9oBEHXedz+S0r6oQzuTXmKPwIuh/V0RFBbwK8Q6GMjdnCJRNn76nq8UYfPLopwx
gpeHRTuR0+Rgg3aqngzc0QK2RAwdQKr3t53H2UMhmRhmv8dL9T05BqDD4gdSdPmE
8cR9+XpL5MQIEVxe6rSR4pXLhZ+kpLZ3PmJaK5ZxoO3+Gk0/zPpyKIOw/uR7T9a0
dch7sI1EJQ1bEeHrq2WxAoWlFWGxY7Y9GTieonRNm/U8NMDS4C0UTsmVNggKfqDH
OeCPYAYe1mmM2wY+VSqrWAhFDFHdfn04YNyG0VpW8T6QPDj2cXu7rwkP9/QguIM=
=cTlm
-----END PGP SIGNATURE-----



More information about the nsd-users mailing list