]> git.meshlink.io Git - catta/blobdiff - initscript/fedora/avahi-daemon.in
Document in avahi_entry_group_add_service() that Avahi service names need to be short...
[catta] / initscript / fedora / avahi-daemon.in
index aead1be245a9ff7f84633c11788f50aced9d09f0..a9d1e3264a60cab2ece56ecb2e8c18732c9a2da4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # 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. \
@@ -80,7 +80,8 @@ case "$1" in
        ;;
   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
@@ -98,5 +99,5 @@ case "$1" in
        exit 1
 esac
 
-exit $?
+exit $RETVAL