summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorRuben Schuller <sb@rbn.im>2021-07-16 22:22:38 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-19 16:23:31 +0700
commit0c90e265b28df3e8d5c58d89dec0a685d44c5b73 (patch)
treee391c7771e6ce07cb6e7cdc540875dc2c3b3fff5 /network
parentf04271675d307c17bfac1896b9ececc143f3bfd9 (diff)
downloadslackbuilds-0c90e265b28df3e8d5c58d89dec0a685d44c5b73.tar.gz
network/yadifa: Create piddir during init
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/yadifa/rc.yadifa4
-rw-r--r--network/yadifa/yadifa.SlackBuild3
2 files changed, 4 insertions, 3 deletions
diff --git a/network/yadifa/rc.yadifa b/network/yadifa/rc.yadifa
index 63a35376ed..fdc1cecf6e 100644
--- a/network/yadifa/rc.yadifa
+++ b/network/yadifa/rc.yadifa
@@ -5,6 +5,10 @@
do_start() {
if [ -x /usr/sbin/yadifad ]; then
+ if [ ! -d /run/yadifa ]; then
+ mkdir -p /run/yadifa
+ chown yadifa:yadifa /run/yadifa
+ fi
echo -n "Starting YADIFA DNS Server: /usr/sbin/yadifad -c /etc/yadifa/yadifad.conf --daemon... "
/usr/sbin/yadifad -c /etc/yadifa/yadifad.conf --daemon 2> /dev/null
echo "done."
diff --git a/network/yadifa/yadifa.SlackBuild b/network/yadifa/yadifa.SlackBuild
index d451643f96..0050b7e9aa 100644
--- a/network/yadifa/yadifa.SlackBuild
+++ b/network/yadifa/yadifa.SlackBuild
@@ -138,9 +138,6 @@ install --mode=755 $CWD/doinst.sh $PKG/install/doinst.sh
mkdir -p $PKG/etc/rc.d
install --mode=755 $CWD/rc.yadifa $PKG/etc/rc.d/rc.yadifa.new
-mkdir -p $PKG/var/run/yadifa
-chown yadifa:yadifa $PKG/var/run/yadifa
-
mkdir -p $PKG/var/log/yadifa
chown yadifa:yadifa $PKG/var/log/yadifa