Package: bind9
Version: 1:9.6.1.dfsg-2
Severity: normal
Tags: patch
Files: /etc/init.d/bind9

  The init script uses a hard coded PIDFILE.  It overrides possible 
setting of pid-file by the local administrator.  This patch 
somewhat remedy this problem:

--- debian/bind9.init  2009-07-29 17:18:50.000000000 +0300
+++ debian/bind9.init.new       2009-07-29 17:20:45.000000000 +0300
@@ -25,7 +25,8 @@
 test -x /usr/sbin/rndc || exit 0

 . /lib/lsb/init-functions
-PIDFILE=/var/run/named/named.pid
+PIDFILE=`grep -sr pid-file /etc/bind | sed -n 's/.* \(.*\);/\1/p'`
+[ ! -f ${PIDFILE} -o ! -r ${PIDFILE} ] && PIDFILE=/var/run/bind/named.pid

 check_network() {
     if [ -x /usr/bin/uname ] && [ "X$(/usr/bin/uname -o)" = XSolaris ]; then

-- 
sobtw...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to