#
# avahi-daemon: Starts the Avahi Daemon
#
-# chkconfig: 345 98 02
+# chkconfig: 345 97 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. \
;;
status)
$AVAHI_BIN -c
- [ $? = 0 ] && echo $"Avahi daemon is running" || echo $"Avahi daemon is not running"
+ RETVAL=$?
+ [ $RETVAL = 0 ] && echo $"Avahi daemon is running" || echo $"Avahi daemon is not running"
;;
restart)
restart
exit 1
esac
-exit $?
+exit $RETVAL