From 6ea017f09fcc40e53a47c678f282d210d76092d6 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Thu, 22 Oct 2026 08:12:45 +0200 Subject: [PATCH] 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 --- net-dns/pdns-recursor/files/pdns-recursor-r3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net-dns/pdns-recursor/files/pdns-recursor-r3 b/net-dns/pdns-recursor/files/pdns-recursor-r3 index 02f8408e275bb..a744a3078d621 100644 --- a/net-dns/pdns-recursor/files/pdns-recursor-r3 +++ b/net-dns/pdns-recursor/files/pdns-recursor-r3 @@ -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