Forum Discussion
7 Replies
- mabdrahi
Contributor
Hi Raju,
Before I begin my investigation, i have item below to clarify:-
1) Does autoboot mean startup application?
2) Can you share your <application.bb>
3) can you share your layers.bb?
Thank you.
- mabdrahi
Contributor
Hi
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
}
- mabdrahi
Contributor
Hi Raju,
Any progress at your end?
- mabdrahi
Contributor
Good day Raju,
If the solution work at your side, I will close the case.
Thanks