From fa5aea80c50fb724d2c98a6542307adbafd0e62d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 22 May 2018 11:12:12 -0500 Subject: [PATCH] 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