diff --git a/net/bind/files/named.init b/net/bind/files/named.init index bb13c5f5f..7c61b5e2a 100644 --- a/net/bind/files/named.init +++ b/net/bind/files/named.init @@ -12,7 +12,6 @@ config_dir=$(dirname $config_file) named_options_file=/etc/bind/named-rndc.conf rndc_conf_file=/etc/bind/rndc.conf pid_file=/var/run/named/named.pid -rndc_temp=$(mktemp /tmp/rndc-confgen.XXXXXX) logdir=/var/log/named/ cachedir=/var/cache/bind @@ -47,6 +46,8 @@ start_service() { chown bind.bind $runnamed } + local rndc_temp=$(mktemp /tmp/rndc-confgen.XXXXXX) + rndc-confgen > $rndc_temp sed -r -n \