diff options
author | Ruben Schuller <sb@rbn.im> | 2021-07-16 22:22:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-19 16:23:31 +0700 |
commit | 0c90e265b28df3e8d5c58d89dec0a685d44c5b73 (patch) | |
tree | e391c7771e6ce07cb6e7cdc540875dc2c3b3fff5 /network/yadifa/rc.yadifa | |
parent | f04271675d307c17bfac1896b9ececc143f3bfd9 (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.yadifa | 4 |
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." |