summaryrefslogtreecommitdiff
path: root/source/n/bind/rc.bind
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bind/rc.bind')
-rw-r--r--source/n/bind/rc.bind4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/n/bind/rc.bind b/source/n/bind/rc.bind
index 7886a254..4cc8f49c 100644
--- a/source/n/bind/rc.bind
+++ b/source/n/bind/rc.bind
@@ -44,6 +44,10 @@ bind_start() {
chown -R ${BIND_USER}:${BIND_GROUP} /var/run/named
# Make sure that /var/named has correct ownership:
chown -R ${BIND_USER}:${BIND_GROUP} /var/named
+ if [ -r /etc/rndc.key ]; then
+ # Make sure that /etc/rndc.key has correct ownership:
+ chown ${BIND_USER}:${BIND_GROUP} /etc/rndc.key
+ fi
# Start named:
if [ -x /usr/sbin/named ]; then
echo "Starting BIND: /usr/sbin/named $NAMED_OPTIONS"