summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/inadyn/Makefile1
-rw-r--r--dns/inadyn/files/inadyn.in5
2 files changed, 6 insertions, 0 deletions
diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile
index a23046619979..abc44df60198 100644
--- a/dns/inadyn/Makefile
+++ b/dns/inadyn/Makefile
@@ -1,5 +1,6 @@
PORTNAME= inadyn
PORTVERSION= 2.11.0
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= https://github.com/troglobit/${PORTNAME}/releases/download/v${PORTVERSION}/
diff --git a/dns/inadyn/files/inadyn.in b/dns/inadyn/files/inadyn.in
index 2c1a77815724..a5bf457e9ce4 100644
--- a/dns/inadyn/files/inadyn.in
+++ b/dns/inadyn/files/inadyn.in
@@ -40,6 +40,11 @@ inadyn_checkconfig()
{
echo "Performing sanity check on ${name} configuration:"
eval ${command} ${command_args} --check-config
+ piddir="$(dirname ${pidfile})"
+ if [ ! -d "${piddir}" ] && id inadyn >/dev/null 2>&1 ; then
+ mkdir -p "${piddir}"
+ chown inadyn:inadyn "${piddir}"
+ fi
}
run_rc_command "$1"