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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user