aboutsummaryrefslogtreecommitdiff
path: root/network/nsd/rc.nsd
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-07-18 03:33:51 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-19 16:23:33 +0700
commit1523e52ef65f8def6572d88bd4145ca2a2124df0 (patch)
treef633fa38f743714d26c0b6bef33e8b41954f4b7a /network/nsd/rc.nsd
parentf3e99ced6c7e7feb8cc9b37d47332a63540358a5 (diff)
network/nsd: Create piddir during init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nsd/rc.nsd')
-rw-r--r--network/nsd/rc.nsd2
1 files changed, 2 insertions, 0 deletions
diff --git a/network/nsd/rc.nsd b/network/nsd/rc.nsd
index 55118d9464cff..d86761afd84fa 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
}