dl-mgr_0.1.bb:
**DESCRIPTON = "Startup scripts"
#LICENSE = "CLOSED"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r0"
SRC_URI = "file://dl-mgr.sh \
file://dl-mgr.service \
"
inherit update-rc.d systemd
SYSTEMD_PACKAGES = "${PN}"
INITSCRIPT_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "dl-mgr.service"
do_install(){
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d ${D}/etc/systemd/system/multi-user.target.wants
install -m 644 ${WORKDIR}/dl-mgr.service ${D}/etc/systemd/system/dl-mgr.service
## Add following link if you want auto start of service
## ln -s /etc/systemd/system/dl-mgr.service ${D}/etc/systemd/system/multi-user.target.wants/dl-mgr.service
fi
}
do_install () {
install -d ${D}${libexecdir}
install -m 0755 ${WORKDIR}/dl-mgr.sh ${D}${libexecdir}/dl-mgr.sh
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/dl-mgr.service ${D}${systemd_system_unitdir}
}
FILES_${PN} += "${libexecdir}/dl-mgr.sh"
FILES_${PN} += "${systemd_system_unitdir}/dl-mgr.service"**
And it is in dir:/sources/poky/meta/recipes-core/