From: Lennart Poettering Date: Thu, 12 Apr 2007 21:59:02 +0000 (+0000) Subject: fix fedora init script exit code (closes #115) patch from mbacovsk@redhat.com X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=7b2cfb7ec3c22b16615d4dfb37bdf08f85f31bad;p=catta fix fedora init script exit code (closes #115) patch from mbacovsk@redhat.com git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1413 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/initscript/fedora/avahi-daemon.in b/initscript/fedora/avahi-daemon.in index aead1be..662684f 100644 --- a/initscript/fedora/avahi-daemon.in +++ b/initscript/fedora/avahi-daemon.in @@ -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 diff --git a/initscript/fedora/avahi-dnsconfd.in b/initscript/fedora/avahi-dnsconfd.in index deb81fb..bdf9370 100644 --- a/initscript/fedora/avahi-dnsconfd.in +++ b/initscript/fedora/avahi-dnsconfd.in @@ -76,7 +76,8 @@ case "$1" in ;; status) $AVAHI_BIN -c - [ $? = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running" + RETVAL=$? + [ $RETVAL = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running" ;; restart) restart @@ -95,5 +96,5 @@ case "$1" in ;; esac -exit $? +exit $RETVAL