Skip to contentSkip to conversation

libvirt: move libvirt-guests.sh to /etc/init.d

PATCH In review Joe Slater 2 participants 2 messages May 29, 2013 – May 30, 2013

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v2 1/1 libvirt: move libvirt-guests.sh to /etc/init.d

CQID: 418962

The script does not seem to meet the definition of what should go into /usr/libexec and is a superset of a normal "service" script, so we move it to /etc/init.d.

---
 recipes-extended/libvirt/libvirt_1.0.3.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
recipes-extended/libvirt/libvirt_1.0.3.bb +5 -1
index 989b8b1..9ced413 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://libvirt.org"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f"
 SECTION = "console/tools"
-PR = "r4"
+PR = "r5"
 
 DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \
 	   iptables ebtables dnsmasq readline"
@@ -146,4 +146,8 @@ do_install_append() {
 
 	install -m 0755 ${WORKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
 	install -m 0644 ${WORKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
+
+	# This will wind up in the libvirtd package, but will NOT be invoked by default.
+	#
+	mv ${D}/usr/libexec/libvirt-guests.sh ${D}/${sysconfdir}/init.d
 }
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 6 lines · Joe Slater

CQID: 418962

The script does not seem to meet the definition of what should go into /usr/libexec and is a superset of a normal "service" script, so we move it to /etc/init.d.

Thanks Joe. I've grabbed the patch, it'll go out soon.

Bruce

Quoted 31 lines
---
 recipes-extended/libvirt/libvirt_1.0.3.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
recipes-extended/libvirt/libvirt_1.0.3.bb +5 -2
index 989b8b1..9ced413 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://libvirt.org"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f"
 SECTION = "console/tools"
-PR = "r4"
+PR = "r5"
 
 DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \
           iptables ebtables dnsmasq readline"
@@ -146,4 +146,8 @@ do_install_append() {
 
        install -m 0755 ${WORKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
        install -m 0644 ${WORKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
+
+       # This will wind up in the libvirtd package, but will NOT be invoked by default.
+       #
+       mv ${D}/usr/libexec/libvirt-guests.sh ${D}/${sysconfdir}/init.d
 }
--

1.7.3.4

Quoted 4 lines

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"