Commit 81d129b8 authored by Dave Cottlehuber's avatar Dave Cottlehuber
Browse files

dns/dnsdist: ensure pidfile exists & has appropriate permissions

PR:		253887
Approved by:	Ralf van der Enden <tremere@cainites.net> (maintainer)
Sponsored by:	SkunkWerks, GmbH
parent 90211419
......@@ -3,7 +3,7 @@
PORTNAME= dnsdist
DISTVERSION= 1.5.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= dns net
MASTER_SITES= https://downloads.powerdns.com/releases/
......
......@@ -95,4 +95,13 @@ else
fi
fi
start_precmd=dnsdist_startprecmd
dnsdist_startprecmd()
{
if [ ! -e ${pidfile} ]; then
install -o ${dnsdist_priv_user} -g ${dnsdist_priv_group} /dev/null ${pidfile};
fi
}
run_rc_command "$1"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment