From b28f82b451923b322e6ff6fb51ef7be308152cec Mon Sep 17 00:00:00 2001 From: phonedph1 Date: Thu, 24 Oct 2019 13:05:09 -0600 Subject: [PATCH] rec: Update CentOS 6 init script --- builder-support/specs/pdns-recursor.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder-support/specs/pdns-recursor.init b/builder-support/specs/pdns-recursor.init index f787ae3f2..b64d47b21 100644 --- a/builder-support/specs/pdns-recursor.init +++ b/builder-support/specs/pdns-recursor.init @@ -9,7 +9,7 @@ # description: PowerDNS Recursor is a non authoritative/recursing DNS server # processname: pdns-recursor # config: /etc/pdns-recursor/recursor.conf -# pidfile: /var/run/pdns_recursor.pid +# pidfile: /var/run/pdns-recursor/pdns_recursor.pid # # . function library @@ -18,7 +18,7 @@ RETVAL=0 PIDDIR=$(awk -F= '/^socket-dir=/ {print $2}' /etc/pdns-recursor/recursor.conf) -if [ -z "$PIDDIR" ]; then PIDDIR=/var/run; mkdir -p $PIDDIR; fi +if [ -z "$PIDDIR" ]; then PIDDIR=/var/run/pdns-recursor; mkdir -p $PIDDIR; fi start() { echo -n $"Starting pdns-recursor: " -- 2.50.1