[nsd-users] logfile empty after logrotate

Andreas Schulze andreas.schulze at datev.de
Thu Oct 14 09:56:43 UTC 2010


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

-- 
Andreas Schulze
Internetdienste | P532

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen




More information about the nsd-users mailing list