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:
parent
0f4fa41574
commit
fa5aea80c5
@ -133,11 +133,10 @@ _status()
|
|||||||
elif service_inactive; then
|
elif service_inactive; then
|
||||||
ewarn "status: inactive"
|
ewarn "status: inactive"
|
||||||
return 16
|
return 16
|
||||||
elif service_started; then
|
elif service_crashed; then
|
||||||
if service_crashed; then
|
|
||||||
eerror "status: crashed"
|
eerror "status: crashed"
|
||||||
return 32
|
return 32
|
||||||
fi
|
elif service_started; then
|
||||||
einfo "status: started"
|
einfo "status: started"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user