Forum Discussion
mabdrahi
Contributor
3 years agoHi
you may try to create file test.service with content below
[Unit]
Description=raju test app run at startup
[Service]
ExecStart=/usr/bin/raps -H -f
[Install]
WantedBy=multi-user.target
---------------then change and add below in test-app_1.0.0.tbb --------------
inherit systemd
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE_${PN} = "cpeng.service"
SRC_URI = "file://raju_apps.c"
SRC_URI += "file://test.service"
S = "${WORKDIR}"
FILES_${PN} += "${systemd_unitdir}/system/test.service"
do_install() {
install -d ${D}${bindir}
install -m 0755 raps ${D}${bindir}
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/test.service ${D}/${systemd_unitdir}/system
}