Changeset 1674

Show
Ignore:
Timestamp:
06/23/06 18:34:25 (2 years ago)
Author:
anarcat
Message:

permettre n'importe quelle commande pour NAMED

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-slavedns/trunk/slavedns

    r1673 r1674  
    1111WGETFLAGS="" 
    1212 
    13 #NAMED9=/usr/pkg/etc/rc.d/named9 # BIND9 on NetBSD 
    14 #NAMED8=/etc/rc.d/named # BIND8 on NetBSD/FreeBSD/OpenBSD 
    15 #NAMED8=/etc/init.d/named # BIND8 on some Linux 
    16 #NAMED9=/etc/init.d/named9 # BIND9 on some Linux 
    17 NAMED8=/etc/init.d/bind # BIND8 on other Linux 
    18 NAMED9=/etc/init.d/bind9 # BIND9 on other Linux 
     13NAMED="/etc/init.d/bind restart"  
    1914 
    2015TIMEOUT=5 
    21 NAMED="${NAMED8} ${NAMED9}" 
    2216 
    2317CreateBindConf() { 
     
    112106done     # Main loop on config files 
    113107 
    114 if [ "$RELOAD" ] 
     108if [ "YES" = "$RELOAD" ] 
    115109then 
    116     for script in $NAMED 
    117     do 
    118       if [ -x ${script} ] 
    119       then 
    120           ${script} reload 
    121       fi 
    122     done 
     110    ${NAMED} >/dev/null 
    123111fi 
  • alternc-slavedns/trunk/slavedns.conf

    r1673 r1674  
    3131# BINDINCLUDE=/etc/namedb/slavedns.conf 
    3232# WGETFLAGS="--no-check-certificate" 
     33#NAMED="/usr/pkg/etc/rc.d/named9 restart" # BIND9 on NetBSD 
     34#NAMED="/etc/rc.d/named restart" # BIND8 on NetBSD/OpenBSD 
     35#NAMED="killall -HUP named" # generic 
     36#NAMED="/etc/init.d/named restart" # BIND8 on some Linux 
     37#NAMED="/etc/init.d/named9 restart" # BIND9 on some Linux 
     38#NAMED="/etc/init.d/bind restart" # BIND8 on other Linux 
     39#NAMED="/etc/init.d/bind9 restart" # BIND9 on other Linux