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

This is handled inside librc, so we don't need the nesting in this
script.
This commit is contained in:
William Hubbs 2018-05-22 11:12:12 -05:00
parent 0f4fa41574
commit fa5aea80c5

View File

@ -133,11 +133,10 @@ _status()
elif service_inactive; then
ewarn "status: inactive"
return 16
elif service_started; then
if service_crashed; then
elif service_crashed; then
eerror "status: crashed"
return 32
fi
elif service_started; then
einfo "status: started"
return 0
else