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://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20120923/ffe71748/attachment.htm>
On 2012-09-23 18:37, Mariano Absatz - gmail wrote:> 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).SIGHUP (nsdc reload). There isn't a separate signal to make NSD only reopen its log file. If you're running chrooted, you must either restart NSD or place the log file inside the chroot. You can also log to syslog.
On Sun, Sep 23, 2012 at 11:18 PM, Darren Pilgrim <darren at bluerosetech.com>wrote:> On 2012-09-23 18:37, Mariano Absatz - gmail wrote: > >> 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). >> > > SIGHUP (nsdc reload). There isn't a separate signal to make NSD only > reopen its log file. If you're running chrooted, you must either restart > NSD or place the log file inside the chroot. You can also log to syslog. >Thanx a lot. nsdc reload worked just fine (I already had log files within the chroot environment). -- Mariano Absatz - El Baby www.clueless.com.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20120923/c8caa6dc/attachment.htm>