X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Ffedora%2Favahi-daemon.in;h=d30986652d88ae6f0fb268d287c06bcb936cdb75;hb=c7ecad8fa467b8be2b34064020e2c541c480645e;hp=46318cfa4ef6e2d665bc3f1ab836b9516a2586ed;hpb=7c966a2bfbadce6e924fc6dd2053e614b0449ea2;p=catta diff --git a/initscript/fedora/avahi-daemon.in b/initscript/fedora/avahi-daemon.in index 46318cf..d309866 100644 --- a/initscript/fedora/avahi-daemon.in +++ b/initscript/fedora/avahi-daemon.in @@ -2,7 +2,7 @@ # # avahi-daemon: Starts the Avahi Daemon # -# chkconfig: 345 97 02 +# chkconfig: 345 96 02 # description: This is a daemon which runs on client machines to perform \ # Zeroconf service discovery on a network. avahi-daemon must be \ # running on systems that use Avahi for service discovery. \ @@ -10,21 +10,20 @@ # processname: avahi-daemon # config: -OTHER_AVAHI_OPTS="" - -# Source function library. -. /etc/init.d/functions -. /etc/sysconfig/network - - AVAHI_BIN=@sbindir@/avahi-daemon -if [ $1 == 'status' ]; then +if [ "$1" == 'status' ]; then test -x $AVAHI_BIN || exit 4 else test -x $AVAHI_BIN || exit 5 fi +OTHER_AVAHI_OPTS="" + +# Source function library. +. /etc/init.d/functions +. /etc/sysconfig/network + LOCKFILE=/var/lock/subsys/avahi-daemon base=${0##*/} @@ -102,6 +101,7 @@ case "$1" in *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 2 + ;; esac exit $RETVAL