In unbound.conf() can be read
but
with
always results in
Having read this http://unbound.net/pipermail/unbound-us ... 00674.html
did not lead to a solution. The size of the logfile stays zero. How to do it the right way?
Code:
# unbound.conf(5) config file for unbound(8).
server:
directory: "/etc/unbound"
username: unbound
# make sure unbound can access entropy from inside the chroot.
# e.g. on linux the use these commands (on BSD, devfs(8) is used):
# mount --bind -n /dev/random /etc/unbound/dev/random
# and mount --bind -n /dev/log /etc/unbound/dev/log
chroot: "/etc/unbound"
# logfile: "/etc/unbound/unbound.log" #uncomment to use logfile.
pidfile: "/etc/unbound/unbound.pid"
# verbosity: 1 # uncomment and increase to get more logging.
Code:
# mount --bind -n /dev/random /etc/unbound/dev/random
mount: illegal option -- -
# mount --bind -n /dev/log /etc/unbound/dev/log
mount: illegal option -- -
Code:
# grep log /etc/unbound/unbound.conf
logfile: /var/log/unbound.log
use-syslog: no # yes makes no difference
log-time-ascii: yes
log-queries: yes
val-log-level: 2
Code:
# ls -l /var/log/unbound.log
-rw------- 1 root wheel 0 8 Jun 14:23 /var/log/unbound.log
# ls -l /var/unbound/var/log/unbound.log
-rw-r----- 1 root unbound 0 23 Sep 07:45 /var/unbound/var/log/unbound.log
did not lead to a solution. The size of the logfile stays zero. How to do it the right way?