]> granicus.if.org Git - pdns/commitdiff
rec: Update CentOS 6 init script
authorphonedph1 <phoned@gmail.com>
Thu, 24 Oct 2019 19:05:09 +0000 (13:05 -0600)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2019 19:05:09 +0000 (13:05 -0600)
builder-support/specs/pdns-recursor.init

index f787ae3f2b3cb4c8b9534152b40192882b270838..b64d47b2187ebe2902d818e5800f13a7ec8e7f7d 100644 (file)
@@ -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: "