]> git.pld-linux.org Git - packages/bind.git/commitdiff
- cleanups for new rc-scripts 0.2.0.
authorkloczek <kloczek@pld-linux.org>
Wed, 22 Mar 2000 23:43:12 +0000 (23:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    named.init -> 1.10

named.init

index 0bd639d46c284f85175af156716a8904ed2fd771..6a728feaea8e6c10d186610703bc82b12a823a73 100644 (file)
@@ -7,20 +7,17 @@
 # description: named (BIND) is a Domain Name Server (DNS) \
 #              that is used to resolve host names to IP addresses.
 
-# Source function library.
+# Source function library
 . /etc/rc.d/init.d/functions
 
-# Source networking configuration.
+# Source networking configuration
 . /etc/sysconfig/network
 
 # Try get config..
-if [ -f /etc/sysconfig/named ]; then
-     . /etc/sysconfig/named
-fi     
+[ -f /etc/sysconfig/named ] && . /etc/sysconfig/named
        
 # Check that networking is up.
 if is_no "${NETWORKING}"; then
-        # nls "ERROR: Networking is down. %s can't be run." <service>
         msg_Network_Down "Named"
        exit 1
 fi
@@ -43,7 +40,6 @@ case "$1" in
                msg_Already_Running "Named"
                exit 1
        fi
-
         ;;
   stop)
         if [ -f /var/lock/subsys/named ]; then
@@ -54,8 +50,7 @@ case "$1" in
                msg_Not_Running "Named"
                 exit 1
         fi
-                                                                                                                       
-        ;;
+       ;;
   status)
        /usr/sbin/ndc status
        exit $?
This page took 0.054633 seconds and 4 git commands to generate.