<div dir="ltr">Hello Matt,<div>thank you for your answer, I was typing a mail to, I found this fix too minutes before your answer ^^<br><div>However, I do not understand why the first syntax did not work, since the systemd class seems to seek the service file here to. Here is the code which make me think of that possibility, in systemd.bbclass : </div><div><br></div><div><div>139 Â  Â  def systemd_check_services():</div><div>140 Â  Â  Â  Â  searchpaths = [oe.path.join(d.getVar("sysconfdir", True), "systemd", "system"),]</div><div>141 Â  Â  Â  Â  searchpaths.append(d.getVar("systemd_system_unitdir", True))</div></div><div><br></div></div><div>But at least, it works with the new path in my recipe</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-11 13:20 GMT+02:00 Alexis Lothoré <span dir="ltr"><<a href="mailto:alexis.lothore@gmail.com" target="_blank">alexis.lothore@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div>I am currently trying to set up an Iot showcase platform using lowpan-tools on raspberry.</div><div>To do so, I added systemd and I am now trying to create a recipe installing my lowpan configuration script and lowpan.service. I used <a href="http://connman-init-systemd.bb" target="_blank">connman-init-systemd.bb</a> in meta-eca as a template to my recipe, which looks like the following (<a href="http://lowpan-init-systemd.bb" target="_blank">lowpan-init-systemd.bb</a>): </div><div><br></div><div>==========================================================</div><div><div>SUMMARY = "Configuration files to set up Lowpan interface"</div><div>DESCRIPTION = "Used to configure a lowpan interface with systemd when driver is loaded"</div><div>LICENSE = "MIT"</div><div>LIC_FILES_CHKSUM = "file://COPYING;md5=0835ade698e0bcf8506ecda2f7b4f302"</div><div><br></div><div>SRC_URI += "\</div><div>  Â  Â  Â  file://COPYING \</div><div>  Â  Â  Â  file://init.sh \</div><div>  Â  Â  Â  file://lowpan.service \</div><div>"</div><div>S = "${WORKDIR}"</div><div><br></div><div>inherit systemd</div><div><br></div><div>SYSTEMD_PACKAGES = "${PN}"</div><div><br></div><div>SYSTEMD_SERVICE_${PN} = " lowpan.service"</div><div><br></div><div>FILES_${PN} += " lowpan.service \</div><div>  Â  Â  Â  Â  Â  Â  Â  Â /opt/lowpan/init.sh \</div><div>"</div><div><br></div><div><br></div><div>do_install () {</div><div>  Â  install -d ${D}{sysconfdir}/systemd/system</div><div>  Â  install -d ${D}/opt/lowpan</div><div>  Â  install -m 0755 ${WORKDIR}/lowpan.service ${D}{sysconfdir}/systemd/system</div><div>  Â  install -m 0755 ${WORKDIR}/init.sh ${D}/opt/lowpan</div><div>}</div><div>==============================================================</div><div><div>and the service file, located in "files" : </div><div>==============================================================</div><div><div>[Unit]</div><div>Description=Lowpan interface configuration</div><div>Wants=sys-subsystem-net-devices-wpan0.device</div><div>After=sys-subsystem-net-devices-wpan0.device</div><div><br></div><div>[Service]</div><div>Type=oneshot</div><div>RemainAfterExit=no</div><div>ExecStart=/opt/lowpan/init.sh</div><div><br></div><div>[Install]</div><div>WantedBy=multi-user.target</div></div><div>==============================================================</div><div><br></div><div>I chose to inherit systemd to be sure that my service is not only installed but also enabled at first boot.</div><div>However, when I try to bitbake this recipe only (or the whole image, which has a IMAGE_INSTALL_append = "lowpan-tools lowpan-init-systemd"), I get the following error at some point : </div><div><i><div><b><br></b></div><div><b>lowpan-init-systemd-1.0-r0 do_package: Function failed: SYSTEMD_SERVICE_lowpan-init-systemd value lowpan.service does not exist</b></div><div><br></div></i></div><div>Thinking it was due to file location, (trying to read systemd.bbclass, I think the class does not find my service file) I tried adding ${S}, ${WORKDIR} or so before lowpan.service in SYSTEMD_SERVICE, but it changed nothing.</div><div>Can someone explain me what I am doing wrong in this case ?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexis Lothoré<div>Élève-Ingénieur Ã  l'INSA de Toulouse</div><div>5A Automatique-Electronique : Systèmes Embarqués Critiques</div><div>06.51.59.81.45</div></div></div></div></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexis Lothoré<div>Élève-Ingénieur Ã  l'INSA de Toulouse</div><div>5A Automatique-Electronique : Systèmes Embarqués Critiques</div><div>06.51.59.81.45</div></div></div></div></div>
</div>