[libvirt] [PATCHv3 2/2] spec: don't use chkconfig --list
Daniel Veillard
veillard at redhat.com
Thu Dec 8 02:53:32 UTC 2011
On Wed, Dec 07, 2011 at 05:56:26PM -0700, Eric Blake wrote:
> On 12/07/2011 05:50 PM, Laine Stump wrote:
> > On 12/06/2011 06:47 PM, Eric Blake wrote:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=694403 reports that
> >> the specfile is incorrectly checking for a running libvirt-guests
> >> service. For example,
> >>
> >> $ LC_ALL=es_ES chkconfig --list libvirt-guests
> >> libvirt-guests 0:desactivado 1:desactivado
> >> 2:desactivado 3:activo 4:activo 5:activo 6:desactivado
> >>
> >> will fail to find 5:on, even though it is active. But chkconfig
> >> already has a mode where you can silently use the exit status to
> >> check for an active service.
> >>
> >> # We check this by looking to see if the daemon is already installed
> >> -/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
> >> -if test $? != 0&& test ! -f
> >> %{_sysconfdir}/libvirt/qemu/networks/default.xml
> >> +if ! /sbin/chkconfig&& test ! -f
>
> Actually, in my testing, I realized this has to be '/bin/chkconfig
> libvirtd', not '/sbin/chkconfig'.
>
> >
> > ACK.
>
> I'll push the corrected version.
Humm ... here on Fedora 14 it's definitely /sbin/chkconfig there
is no /bin/chkconfig,
let's wait after the release to get a definitive fix,
Daniel
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list