i have DietPi running on Rpi3-B+ making use of “unbound” with pihole. the /var/log/unbound logs gets rather large so i put in a USB stick formatted with ext4 and changed unbound config to put its log files there. but i’m getting errors trying to make that happen. i.e;
syslog:: unbound[816]: [1561052647] unbound[816:0] error: Could not open logfile /mnt/USB1/log/unbound.log: Permission denied
i have same perms as you on “/etc/unbound/” but on the usb stick /mnt/USB1/log/unbound (root.unbound) . though, nothing gets written as you know. unbound defaults to syslog i believe if it can’t write to the dir set in its config.
i have these opts “resolvconf_start” & “resolvconf_stop” passed to package-helper in the unbound-resolvconf.service file. the usage options for the package-helper list the “chroot_setup” & “resolvconf_start/stop” along with a few others. basically functions in that script.
currently, unbound is running via systemd but i will stop it and run from /usr/sbin/unbound , try some different dir’s in the config file and compare to usb stick dir. i’ll post back results in a day or two.
i changed perms to unbound.unbound on /var/log/unbound and /mnt/USB1/log/unbound. its working now.
maybe i changed perms mucking about on this and forgot. thanks for your help!~