diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-18 03:33:51 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-19 16:23:33 +0700 |
commit | 1523e52ef65f8def6572d88bd4145ca2a2124df0 (patch) | |
tree | f633fa38f743714d26c0b6bef33e8b41954f4b7a | |
parent | f3e99ced6c7e7feb8cc9b37d47332a63540358a5 (diff) |
network/nsd: Create piddir during init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/nsd/nsd.SlackBuild | 3 | ||||
-rw-r--r-- | network/nsd/rc.nsd | 2 |
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 } |