commit:     fa5aea80c50fb724d2c98a6542307adbafd0e62d
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue May 22 16:12:12 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue May 22 17:20:38 2018 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=fa5aea80

openrc-run.sh: move crashed test outside started test

This is handled inside librc, so we don't need the nesting in this
script.

 sh/openrc-run.sh.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in
index e3dff6ce..7e9064c2 100644
--- a/sh/openrc-run.sh.in
+++ b/sh/openrc-run.sh.in
@@ -133,11 +133,10 @@ _status()
        elif service_inactive; then
                ewarn "status: inactive"
                return 16
+       elif service_crashed; then
+               eerror "status: crashed"
+               return 32
        elif service_started; then
-               if service_crashed; then
-                       eerror "status: crashed"
-                       return 32
-               fi
                einfo "status: started"
                return 0
        else

Reply via email to