#
# 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. \
# 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##*/}
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
exit 2
+ ;;
esac
exit $RETVAL