summaryrefslogtreecommitdiff
path: root/dns/inadyn/files/inadyn.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/inadyn/files/inadyn.in')
-rw-r--r--dns/inadyn/files/inadyn.in5
1 files changed, 5 insertions, 0 deletions
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"