libvirt: pass correct args when start libvirtd
PATCH 1/1 libvirt: pass correct args when start libvirtd
When systemd starts libvirtd we want to make sure we pass the correct arguments to run the daemon. If we fail to do so the libvirtd service will restart about once a minute and not allow for VMs to properly be instantiated. libvirtd now runs with the same args as when we use sysvinit.
Signed-off-by Mark Asselstine <[email protected]>
--- recipes-extended/libvirt/libvirt_1.2.17.bb | 5 +++++ 1 file changed, 5 insertions(+)
recipes-extended/libvirt/libvirt_1.2.17.bb +5 -0
@@ -222,6 +222,11 @@ do_install_append() { mv ${D}/${libexecdir}/libvirt-guests.sh ${D}/${sysconfdir}/init.d fi + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + # This variable is used by libvirtd.service to start libvirtd in the right mode + sed -i '/#LIBVIRTD_ARGS="--listen"/a LIBVIRTD_ARGS="--listen --daemon"' ${D}/${sysconfdir}/sysconfig/libvirtd + fi + # The /var/run/libvirt directories created by the Makefile # are wiped out in volatile, we need to create these at boot. rm -rf ${D}${localstatedir}/run
Signature · 1 line
2.1.4