[nsd-users] reopen log file?

Mariano Absatz - gmail el.baby at gmail.com
Mon Sep 24 03:37:39 CEST 2012


Hi,

is there a way to signal NSD to re-open the log file without completely
restarting it? (similar to what *unbound-control log_reopen* does in
unbound).

I want to implement log rotation using logrotate and, after moving the
current log file to a new name I need nsd to close it and open it again
(using, obviously, the original name) which would lead to a fresh new log
file.

The last resource, would be to restart the daemon, but most daemon software
provide some kind of 'reopen log' (some times in response to some signal
sent to the process (I see the typical SIGHUP and SIGUSR1 are already
used... maybe SIGUSR2).

TIA

-- 
Mariano Absatz - El Baby
www.clueless.com.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open.nlnetlabs.nl/pipermail/nsd-users/attachments/20120923/ffe71748/attachment.html>


More information about the nsd-users mailing list