diff options
Diffstat (limited to 'initscript')
-rw-r--r-- | initscript/fedora/avahi-daemon.in | 5 | ||||
-rw-r--r-- | initscript/fedora/avahi-dnsconfd.in | 5 |
2 files changed, 6 insertions, 4 deletions
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 |