[yocto] Issue creating systemd service recipe

Matt Madison matt at madison.systems
Mon Jun 13 05:31:06 PDT 2016


On Sat, Jun 11, 2016 at 10:32 AM, Alexis Lothoré
<alexis.lothore at gmail.com> wrote:
> Hello Matt,
> thank you for your answer, I was typing a mail to, I found this fix too
> minutes before your answer ^^
> 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 :

Yes, the search code does work; I have some recipes that install
systemd services into /etc/systemd/system.  I think the problem was in
your do_install().

[...]
>> do_install () {
>>     install -d ${D}{sysconfdir}/systemd/system
>>     install -d ${D}/opt/lowpan
>>     install -m 0755 ${WORKDIR}/lowpan.service
>> ${D}{sysconfdir}/systemd/system
            ^--- missing '$' here
>>     install -m 0755 ${WORKDIR}/init.sh ${D}/opt/lowpan
>> }

-Matt



More information about the yocto mailing list