aboutsummaryrefslogtreecommitdiff
path: root/network/nsd
diff options
context:
space:
mode:
Diffstat (limited to 'network/nsd')
-rw-r--r--network/nsd/nsd.SlackBuild3
-rw-r--r--network/nsd/rc.nsd2
2 files changed, 2 insertions, 3 deletions
diff --git a/network/nsd/nsd.SlackBuild b/network/nsd/nsd.SlackBuild
index 63dfa6ef2ba4..b3a40a706a1f 100644
--- a/network/nsd/nsd.SlackBuild
+++ b/network/nsd/nsd.SlackBuild
@@ -142,9 +142,6 @@ install -Dpm 0644 "$CWD/localhost.zone" "$PKG/var/lib/$PRGNAM/zones/master/local
chown -R $USER:$GROUP "$PKG/var/lib/$USER"
-mkdir -p "$PKG/var/run/$PRGNAM"
-chown $USER:$GROUP "$PKG/var/run/$PRGNAM"
-
mkdir -p "$PKG/var/log/$PRGNAM"
chown $USER:$GROUP "$PKG/var/log/$PRGNAM"
diff --git a/network/nsd/rc.nsd b/network/nsd/rc.nsd
index 55118d9464cf..d86761afd84f 100644
--- a/network/nsd/rc.nsd
+++ b/network/nsd/rc.nsd
@@ -6,6 +6,8 @@
do_start() {
if [ -x /usr/sbin/nsd ]; then
echo "Starting Name Server Daemon: /usr/sbin/nsd"
+ mkdir -p /var/run/nsd
+ chown nsd:nsd /var/run/nsd
/usr/sbin/nsd -c /etc/nsd/nsd.conf 2> /dev/null
fi
}