net-dns/pdns-recursor: run checkpath to create /run/pdns-recursor

Our default config runs chrooted to /var/lib/powerdns, which is created
by the package as the chroot target and is also where the pidfile is
stored in this default case.

When not running chrooted, the /run/pdns-recursor directory is used for
the pidfile and it needs to be created by the init script.

Closes: https://bugs.gentoo.org/982121
Signed-off-by: Sven Wegener <swegener@gentoo.org>
This commit is contained in:
Sven Wegener
2026-10-22 08:30:06 +02:00
parent a6a93db5aa
commit 6ea017f09f
@@ -24,6 +24,10 @@ depend() {
need net
}
start_pre() {
checkpath -q -d -m 0700 -o pdns:pdns /run/pdns-recursor
}
ping() {
ebegin "Pinging ${name}"
${control_command} ${control_command_args} ping >/dev/null 2>&1