[nsd-users] logfile empty after logrotate
Andreas Schulze
andreas.schulze at datev.de
Thu Oct 14 13:40:14 UTC 2010
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
--
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