]> git.pld-linux.org Git - packages/bind.git/commitdiff
- fix in checking is netforking is up.
authorkloczek <kloczek@pld-linux.org>
Thu, 5 Aug 1999 20:53:33 +0000 (20:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    named.init -> 1.4

named.init

index bdcdac4ac83e703b6e7354a0b7d10889ffd2bc39..89139d97f3d0a2b8f47953f67b3e66ce2444d5e9 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 #
-# named           This shell script takes care of starting and stopping
-#                 named (BIND DNS server).
+# named                This shell script takes care of starting and stopping
+#              named (BIND DNS server).
 #
-# chkconfig: 345 55 45
-# description: named (BIND) is a Domain Name Server (DNS) \
-# that is used to resolve host names to IP addresses.
+# chkconfig:   345 55 45
+# description: named (BIND) is a Domain Name Server (DNS) \
+#              that is used to resolve host names to IP addresses.
 
 # Source function library.
 . /etc/rc.d/init.d/functions
 # Source networking configuration.
 . /etc/sysconfig/network
 
-# Check that networking is up.
-[ "${NETWORKING}" = "no" ] && exit 0
-
-[ -f /usr/sbin/named ] || exit 0
-
-[ -f /etc/named.conf ] || exit 0
-
 # Try get config..
 if [ -f /etc/sysconfig/named ]; then
      . /etc/sysconfig/named
 fi     
        
+# Check that networking is up.
+if [ "${NETWORKING}" = "no" ]; then
+       echo "WARNING: Networking is down. Named service can't be runed."
+       exit 1
+fi
+
+# Sanity check
+[ -f /etc/named.conf ] || exit 0
+
+
 # See how we were called.
 case "$1" in
   start)
This page took 0.030327 seconds and 4 git commands to generate.