[Slackbuilds-users] libvirt: mistake in rc.libvirt

Matteo Bernardini matteo.bernardini at gmail.com
Wed Feb 24 12:08:13 UTC 2016


2016-02-24 13:01 GMT+01:00 Nicolas Kovacs <info at microlinux.fr>:
> Hi,
>
> I've installed libvirt from SBo. I can build virtual machines OK and
> everything seems to run fine. As far as I can tell, there's only one
> small mistake in rc.libvirt.
>
> As per the README, I added a little startup stanza to /etc/rc.d/rc.local:
>
> # Start libvirt:
> if [ -x /etc/rc.d/rc.libvirt ]; then
>   /etc/rc.d/rc.libvirt start
> fi
>
> And the corresponding stanza in /etc/rc.d/rc.local_shutdown:
>
> # Stop libvirt:
> if [ -x /etc/rc.d/rc.libvirt ]; then
>   /etc/rc.d/rc.libvirt stop
> fi
>
> Now when the machine shuts down (shutdown -h now), I get two error
> messages concerning rc.libvirt. At the respective lines 29 and 40 of the
> script, there's a "virsh: command not found" error.

hi Niki,

I fixed this in our git but when submission for 14.1 were already
closed: I simply changed all the occurences of "virsh" in rc.libvirt
with the absolute path, "/usr/sbin/virsh".

Matteo


More information about the SlackBuilds-users mailing list