Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
create_empty_zone "$mynet.in-addr.arpa"
done
create_empty_zone "$mynet.in-addr.arpa"
done
+ local need_reload=
+
+ cp -p $conf_local_file ${conf_local_file}_
+ cmp -s $conf_local_file ${conf_local_file}_ || need_reload=1
+ rm -f ${conf_local_file}_
+
cat <<EOF > $conf_local_file
zone "$domain" {
type master;
cat <<EOF > $conf_local_file
zone "$domain" {
type master;
- /etc/init.d/named reload
+ [ -n "$need_reload" ] && /etc/init.d/named reload