mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
libvirt-guests: status: return non-zero when stopped
Return 3 when the service is stopped, whether there are saved guests or not, to conform with the LSB standards: http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
This commit is contained in:
parent
5295e35f58
commit
9c51de2b4e
@ -524,10 +524,11 @@ rh_status() {
|
||||
else
|
||||
if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
|
||||
gettext "started"; echo
|
||||
RETVAL=0
|
||||
else
|
||||
gettext "stopped, with no saved guests"; echo
|
||||
RETVAL=3
|
||||
fi
|
||||
RETVAL=0
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user