mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user