mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 18:03:51 +08:00
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_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
|
||||
|
Loading…
Reference in New Issue
Block a user