[packages/bind] - if named is chrooted then checkconf must also run chrooted

baggins baggins at pld-linux.org
Wed Apr 10 22:14:59 CEST 2013


commit d7c7df585e182bb6895063cca9b666e1b6fd69b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Apr 10 22:13:54 2013 +0200

    - if named is chrooted then checkconf must also run chrooted

 named.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/named.service b/named.service
index 0138aea..a44101a 100644
--- a/named.service
+++ b/named.service
@@ -11,7 +11,7 @@ Environment=CHROOT_TO_DIR=/var/lib/named
 EnvironmentFile=-/etc/sysconfig/named
 ExecStartPre=touch $CHROOT_TO_DIR/named.log
 ExecStartPre=chown named:named $CHROOT_TO_DIR/named.log
-ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf
+ExecStartPre=/usr/sbin/named-checkconf -t $CHROOT_TO_DIR -z /etc/named.conf
 ExecStart=/usr/sbin/named -u named -t $CHROOT_TO_DIR -c /etc/named.conf $NAMED_OPT
 ExecStop=/bin/sh -c '[ -f /etc/rndc.conf ] && /usr/sbin/rndc stop || /bin/kill -TERM $MAINPID'
 ExecReload=/bin/sh -c '[ -f /etc/rndc.conf ] && /usr/sbin/rndc reload || /bin/kill -HUP $MAINPID'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bind.git/commitdiff/b9753777e85436063502bcb0666bf8c6271da906



More information about the pld-cvs-commit mailing list