summaryrefslogtreecommitdiff
path: root/package/bind/files/named.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/bind/files/named.init')
-rw-r--r--package/bind/files/named.init5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/bind/files/named.init b/package/bind/files/named.init
index e853202b4..ede96cabe 100644
--- a/package/bind/files/named.init
+++ b/package/bind/files/named.init
@@ -11,8 +11,11 @@ autostop) ;;
exec sh $0 start
;;
start)
+ if [ ! -f /etc/rndc.key ]; then
+ rndc-confgen -a 2>/dev/null
+ fi
if [ -f /etc/bind/named.conf ]; then
- /usr/sbin/named -c /etc/bind/named.conf
+ /usr/sbin/named -c /etc/bind/named.conf &
fi
;;
stop)