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:
Ján Tomko 2013-04-30 13:44:33 +02:00
parent 5295e35f58
commit 9c51de2b4e

View File

@ -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
}