init: suse, status reports dead instead of unused when stopped
authorLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:02:43 +0000 (02:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:04:26 +0000 (02:04 +0100)
Original patch from the Suse guys.

http://avahi.org/ticket/283

initscript/suse/avahi-daemon.in

index e1fd201..851006c 100644 (file)
@@ -37,7 +37,7 @@ case "$1" in
                ;;
        status)
                echo -n "Checking for Avahi daemon: "
                ;;
        status)
                echo -n "Checking for Avahi daemon: "
-               $AVAHI_BIN -c
+               $AVAHI_BIN -c || _rc_status=3
                rc_status -v
                ;;
        *)
                rc_status -v
                ;;
        *)