Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUMMARY = "Install services"
- SECTION = "Miscellaneous"
- LICENSE = "CLOSED"
- SRC_URI = " file://install-psycopg2.sh \
- file://alignment.sh \
- file://install-psycopg2.service \
- file://alignment.service \
- file://edduv_boot.sh \
- file://edduv_boot.service \
- "
- S = "${WORKDIR}"
- inherit allarch update-rc.d systemd
- SYSTEMD_PACKAGES = "${PN}"
- INITSCRIPT_PACKAGES = "${PN}"
- SYSTEMD_SERVICE_${PN} = " \
- alignment.service \
- install-psycopg2.service \
- edduv_boot.service \
- "
- SYSTEMD_AUTO_ENABLE_${PN} = "enable"
- #Copy scripts to rootfs
- do_install() {
- # For scripts
- install -d ${D}${sysconfdir}/scripts
- install -m 0755 ${S}/install-psycopg2.sh ${D}${sysconfdir}/scripts/install-psycopg2.sh
- install -m 0755 ${S}/alignment.sh ${D}${sysconfdir}/scripts/alignment.sh
- install -m 0755 ${S}/edduv_boot.sh ${D}${sysconfdir}/scripts/edduv_boot.sh
- # For services
- install -d ${D}${systemd_system_unitdir}
- install -m 0644 ${S}/alignment.service ${D}${systemd_system_unitdir}/alignment.service
- install -m 0644 ${S}/install-psycopg2.service ${D}${systemd_system_unitdir}/install-psycopg2.service
- install -m 0644 ${S}/edduv_boot.service ${D}${systemd_system_unitdir}/edduv_boot.service
- }
- FILES_${PN} += " /etc/scripts/install-psycopg2.sh"
- FILES_${PN} += " /etc/scripts/alignment.sh"
- FILES_${PN} += " /etc/scripts/edduv_boot.sh"
- FILES_${PN} += " /lib/systemd/system/install-psycopg2.service "
- FILES_${PN} += " /lib/systemd/system/alignment.service"
- FILES_${PN} += " /lib/systemd/system/edduv_boot.service"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement