Ticket #199: avahi-init-failfast.patch

File avahi-init-failfast.patch, 2.7 KB (added by scop, 4 years ago)

Make init scripts fail faster

  • initscript/fedora/avahi-dnsconfd.in

     
    1010# processname: avahi-dnsconfd 
    1111# config: 
    1212 
    13 OTHER_AVAHI_OPTS="" 
    14  
    15 # Source function library. 
    16 . /etc/init.d/functions 
    17 . /etc/sysconfig/network 
    18  
    1913AVAHI_BIN=@sbindir@/avahi-dnsconfd 
    2014 
    2115if [ "$1" == 'status' ]; then 
     
    2418    test -x $AVAHI_BIN || exit 5 
    2519fi 
    2620 
     21OTHER_AVAHI_OPTS="" 
     22 
     23# Source function library. 
     24. /etc/init.d/functions 
     25. /etc/sysconfig/network 
     26 
    2727LOCKFILE=/var/lock/subsys/avahi-dnsconfd 
    2828 
    2929base=${0##*/} 
  • initscript/fedora/avahi-daemon.in

     
    1010# processname: avahi-daemon 
    1111# config:  
    1212 
    13 OTHER_AVAHI_OPTS="" 
    14  
    15 # Source function library. 
    16 . /etc/init.d/functions 
    17 . /etc/sysconfig/network 
    18  
    1913AVAHI_BIN=@sbindir@/avahi-daemon 
    2014 
    2115if [ "$1" == 'status' ]; then 
     
    2418    test -x $AVAHI_BIN || exit 5 
    2519fi 
    2620 
     21OTHER_AVAHI_OPTS="" 
     22 
     23# Source function library. 
     24. /etc/init.d/functions 
     25. /etc/sysconfig/network 
     26 
    2727LOCKFILE=/var/lock/subsys/avahi-daemon 
    2828 
    2929base=${0##*/} 
  • initscript/mandriva/avahi-dnsconfd.in

     
    88# Description: A DNS configuration daemon using mDNS in a DHCP-like fashion 
    99### END INIT INFO 
    1010 
     11AVAHI_BIN=@sbindir@/avahi-dnsconfd 
     12test -x $AVAHI_BIN || exit 5 
     13 
    1114# Source function library. 
    1215. /etc/init.d/functions 
    1316 
     
    1619# Check that networking is configured. 
    1720[ ${NETWORKING} = "no" ] && exit 0 
    1821 
    19 AVAHI_BIN=@sbindir@/avahi-dnsconfd 
    20 test -x $AVAHI_BIN || exit 5 
    21  
    2222start() { 
    2323    echo -n $"Starting Avahi DNS daemon: " 
    2424    $AVAHI_BIN -D 
  • initscript/mandriva/avahi-daemon.in

     
    88# Description: Avahi, a ZeroConf daemon whichs implements an mDNS stack  
    99### END INIT INFO 
    1010 
     11AVAHI_BIN=@sbindir@/avahi-daemon 
     12test -x $AVAHI_BIN || exit 5 
     13 
    1114# Source function library. 
    1215. /etc/init.d/functions 
    1316 
     
    1619# Check that networking is configured. 
    1720[ ${NETWORKING} = "no" ] && exit 0 
    1821 
    19 AVAHI_BIN=@sbindir@/avahi-daemon 
    20 test -x $AVAHI_BIN || exit 5 
    21  
    2222start() { 
    2323    echo -n $"Starting Avahi daemon: " 
    2424    $AVAHI_BIN -D