mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
5295e35f58
commit
9c51de2b4e
1 file changed
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user