[nsd-users] nsd.log rotation
Roman Serbski
mefystofel at gmail.com
Mon May 23 10:36:07 UTC 2016
Hello,
How do you rotate nsd.log? I'm under FreeBSD 10.3-STABLE with the
latest NSD 1.4.9 installed from ports, and trying to rotate
/var/log/nsd.log using newsyslogd:
-=nsd.conf=-
server:
ip-address: 10.9.12.56
do-ip4: yes
do-ip6: no
verbosity: 2
chroot: "/usr/local/etc/nsd"
zonesdir: "/usr/local/etc/nsd"
zonelistfile: "zone.list"
database: "var/db/nsd/nsd.db"
logfile: "/var/log/nsd.log"
pidfile: "var/run/nsd.pid"
xfrdfile: "var/db/nsd/xfrd.state"
xfrdir: "var/db/nsd/"
hide-version: yes
-=newsyslog.conf=-
/var/log/nsd.log nsd:nsd 644 7 100 * Z
/usr/local/etc/nsd/var/run/nsd.pid 1
Sending 1 (HUP) to /usr/local/etc/nsd/var/run/nsd.pid doesn't seem to
have any effect -- the file is rotated but no new log entries added
afterwards:
% ls -al /var/log/nsd.log*
-rw-r--r-- 1 nsd nsd 90 May 23 10:00 /var/log/nsd.log
-rw-r--r-- 1 nsd nsd 50668 May 23 10:00 /var/log/nsd.log.0.gz
# cat /var/log/nsd.log
May 23 10:00:00 ns-feeder newsyslog[59218]: logfile turned over due to size>100K
Is this because of the chroot? Do I need to fire 'nsd-control
log_reopen' instead?
Thank you.
More information about the nsd-users
mailing list