aboutsummaryrefslogtreecommitdiff
path: root/network/yadifa/rc.yadifa
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/yadifa/rc.yadifa
parentf04271675d307c17bfac1896b9ececc143f3bfd9 (diff)
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/yadifa/rc.yadifa')
-rw-r--r--network/yadifa/rc.yadifa4
1 files changed, 4 insertions, 0 deletions
diff --git a/network/yadifa/rc.yadifa b/network/yadifa/rc.yadifa
index 63a35376edbde..fdc1cecf6e4b1 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."