Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6DC5FE00D65; Fri, 11 Sep 2015 07:42:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B805BE00BDE for ; Fri, 11 Sep 2015 07:42:18 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id t8BEgHOo022803 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 11 Sep 2015 07:42:17 -0700 (PDT) Received: from yow-dellw-ma.wrs.com (128.224.56.18) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.235.1; Fri, 11 Sep 2015 07:42:17 -0700 From: Mark Asselstine To: , Date: Fri, 11 Sep 2015 10:42:16 -0400 Message-ID: <1441982536-31994-1-git-send-email-mark.asselstine@windriver.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [PATCH] libvirt: pass correct args when start libvirtd X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 14:42:24 -0000 Content-Type: text/plain 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 --- recipes-extended/libvirt/libvirt_1.2.17.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes-extended/libvirt/libvirt_1.2.17.bb b/recipes-extended/libvirt/libvirt_1.2.17.bb index 6f269f9..06cb51b 100644 --- a/recipes-extended/libvirt/libvirt_1.2.17.bb +++ b/recipes-extended/libvirt/libvirt_1.2.17.bb @@ -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 -- 2.1.4