From 85a794ee3a6f0bb17a0d669d1f37b1fa4204fca3 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Tue, 22 Sep 2020 23:21:17 +0200 Subject: net-dns/pdns: Fix default pidfile location, bug #742962 Closes: https://bugs.gentoo.org/742962 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sven Wegener --- net-dns/pdns/files/pdns-r1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net-dns') diff --git a/net-dns/pdns/files/pdns-r1 b/net-dns/pdns/files/pdns-r1 index 76c4a3f1bbf5..4c5241e5155f 100644 --- a/net-dns/pdns/files/pdns-r1 +++ b/net-dns/pdns/files/pdns-r1 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 PDNS_CONFIGDIR="${PDNS_CONFIGDIR:-/etc/powerdns}" @@ -10,7 +10,7 @@ PDNS_STOP_TIMEOUT="${PDNS_STOP_TIMEOUT:-10}" PDNS_CONFIG="${PDNS_CONFIGDIR}/pdns${PDNS_INSTANCE:+-${PDNS_INSTANCE}}.conf" PDNS_CHROOTDIR="$( awk -F = '$1 == "chroot" { print $2 }' "${PDNS_CONFIG}" )" PDNS_SOCKETDIR="$( awk -F = '$1 == "socket-dir" { print $2 }' "${PDNS_CONFIG}" )" -[ -z "${PDNS_SOCKETDIR}" -a -z "${PDNS_CHROOTDIR}" ] && PDNS_SOCKETDIR="/var/run" +[ -z "${PDNS_SOCKETDIR}" -a -z "${PDNS_CHROOTDIR}" ] && PDNS_SOCKETDIR="/var/run/pdns" name="PowerDNS Authoritative Server${PDNS_INSTANCE:+ (${PDNS_INSTANCE})}" description="Authoritative name server" -- cgit v1.2.3-65-gdbad