Upgrade to evince-3.14.1
[hvlinux.git] / stage3 / bootscripts / named
index 108a452..da81576 100755 (executable)
@@ -3,14 +3,22 @@
 # Source functions library
 source /etc/rc.d/init.d/functions
 
+log_script_name "$0 $*"
+
 # Source the network parameters file for the domain name
 source /etc/sysconfig/network/network-parameters
 
-log_script_name "$0 $*"
+# Check if NFS server functionality is desired
+if [ "x${DNS_SERVER_ENA}" != "xyes" -a \
+     "x${DNS_SERVER_ENA}" != "xYes" -a \
+     "x${DNS_SERVER_ENA}" != "xYES" ]; then
+    msg_log "DNS server disabled in '/etc/sysconfig/network/network-parameters'"
+    exit ${EXIT_CODE_SUCCESS}
+fi
 
 DAEMON=/usr/sbin/named
 DAEMON_DESC="BIND server"
-DAEMON_OPTS="-u named -t /home/named -c /etc/named.conf"
+DAEMON_OPTS="-4 -u named -t /srv/named -c /etc/named.conf"
 
 init_resolver()
 {