summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/libvirt/libvirt_8.1.0.bb5
1 files changed, 2 insertions, 3 deletions
diff --git a/recipes-extended/libvirt/libvirt_8.1.0.bb b/recipes-extended/libvirt/libvirt_8.1.0.bb
index f8deba45..89f82bf8 100644
--- a/recipes-extended/libvirt/libvirt_8.1.0.bb
+++ b/recipes-extended/libvirt/libvirt_8.1.0.bb
@@ -208,12 +208,11 @@ do_install:append() {
208 rmdir ${D}${prefix}/lib/systemd/system ${D}${prefix}/lib/systemd 208 rmdir ${D}${prefix}/lib/systemd/system ${D}${prefix}/lib/systemd
209 fi 209 fi
210 210
211 # This variable is used by libvirtd.service to start libvirtd in the right mode
212 sed -i '/#LIBVIRTD_ARGS="--listen"/a LIBVIRTD_ARGS="--listen --daemon"' ${D}/${sysconfdir}/init.d/libvirtd
213
214 # We can't use 'notify' when we don't support 'sd_notify' dbus capabilities. 211 # We can't use 'notify' when we don't support 'sd_notify' dbus capabilities.
212 # Change default LIBVIRTD_ARGS to start libvirtd in the right mode.
215 sed -i -e 's/Type=notify/Type=forking/' \ 213 sed -i -e 's/Type=notify/Type=forking/' \
216 -e '/Type=forking/a PIDFile=/run/libvirtd.pid' \ 214 -e '/Type=forking/a PIDFile=/run/libvirtd.pid' \
215 -e 's/\(Environment=LIBVIRTD_ARGS="--timeout 120"\)/#\1\nEnvironment=LIBVIRTD_ARGS="--listen --daemon"/' \
217 ${D}/${systemd_system_unitdir}/libvirtd.service 216 ${D}/${systemd_system_unitdir}/libvirtd.service
218 fi 217 fi
219 218