aboutsummaryrefslogtreecommitdiff
path: root/sh/openrc-run.sh.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-05-22 11:12:12 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-05-22 12:20:38 -0500
commitfa5aea80c50fb724d2c98a6542307adbafd0e62d (patch)
tree037d5ad5286395b12d4ae950cfba10199467132a /sh/openrc-run.sh.in
parent0f4fa41574a4ebf8117493e5411f8ab522010467 (diff)
openrc-run.sh: move crashed test outside started test
This is handled inside librc, so we don't need the nesting in this script.
Diffstat (limited to 'sh/openrc-run.sh.in')
-rw-r--r--sh/openrc-run.sh.in7
1 files 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