From 8e3f361d7040bebfe0a557777b29f4b6560fb318 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Mon, 28 Feb 2022 09:28:40 -0500 Subject: [PATCH] Have nsd log to rsyslog only and not both rsyslog and nsd.log. Have rsyslog populate nsd.log instead. --- setup/dns.sh | 15 +-------------- setup/system.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/setup/dns.sh b/setup/dns.sh index da16c75a..e1bc69a0 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -22,7 +22,7 @@ cat > /etc/nsd/nsd.conf << EOF; # Do not edit. Overwritten by Mail-in-a-Box setup. server: hide-version: yes - logfile: "/var/log/nsd.log" + log-only-syslog: yes # identify the server (CH TXT ID.SERVER entry). identity: "" @@ -92,19 +92,6 @@ EOF echo "Installing nsd (DNS server)..." apt_install nsd ldnsutils openssh-client -# ensure nsd can write to its log file - -rwpaths=$(awk -F= '/^ReadWritePaths=/ { print $2 }' /lib/systemd/system/nsd.service) -mkdir -p /etc/systemd/system/nsd.service.d -cat >/etc/systemd/system/nsd.service.d/miab.conf </etc/rsyslog.d/20-mailinabox.conf <