summaryrefslogtreecommitdiffstats
path: root/initscript/fedora
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-04-12 21:59:02 +0000
committerLennart Poettering <lennart@poettering.net>2007-04-12 21:59:02 +0000
commit7b2cfb7ec3c22b16615d4dfb37bdf08f85f31bad (patch)
tree2dedfd6ed38cc6fb4565ac698d352b45da1c657c /initscript/fedora
parent439372fb4361b45da1cb8a292f3f67187c7b79a5 (diff)
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
Diffstat (limited to 'initscript/fedora')
-rw-r--r--initscript/fedora/avahi-daemon.in5
-rw-r--r--initscript/fedora/avahi-dnsconfd.in5
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