From: Ján Tomko Date: Tue, 30 Apr 2013 11:44:33 +0000 (+0200) Subject: libvirt-guests: status: return non-zero when stopped X-Git-Tag: v1.0.5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c51de2b4e2158b93adab4467293b35626099ff6;p=thirdparty%2Flibvirt.git 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 --- diff --git a/tools/libvirt-guests.sh.in b/tools/libvirt-guests.sh.in index 4f2e2035b7..261c488d8f 100644 --- a/tools/libvirt-guests.sh.in +++ b/tools/libvirt-guests.sh.in @@ -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 }