* Yocto build failed to include service file in /deplogy/images/image.wic.gz
@ 2019-07-31 23:04 JH
2019-08-01 0:10 ` Rudolf J Streif
0 siblings, 1 reply; 3+ messages in thread
From: JH @ 2019-07-31 23:04 UTC (permalink / raw)
To: Yocto discussion list
HI,
I have been struggling to find a fix for missing service file, I found
another solution posted from the Internet to use FILES_${PN} +=
"${systemd_system_unitdir}/dl-mgr.service" at the end of the bb file:
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/dl-mgr.service ${D}${systemd_system_unitdir}
As well as this to the end of the .bb file
FILES_${PN} += "${libexecdir}/dl-mgr.sh"
FILES_${PN} += "${systemd_system_unitdir}/dl-mgr.service"
But I could not build it "unprased line FILES_${PN} +=
"${systemd_system_unitdir}/dl-mgr.service", could anyone help please?
Thank you.
Kind regards,
- JH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Yocto build failed to include service file in /deplogy/images/image.wic.gz
2019-07-31 23:04 Yocto build failed to include service file in /deplogy/images/image.wic.gz JH
@ 2019-08-01 0:10 ` Rudolf J Streif
2019-08-01 6:39 ` JH
0 siblings, 1 reply; 3+ messages in thread
From: Rudolf J Streif @ 2019-08-01 0:10 UTC (permalink / raw)
To: JH, Yocto discussion list
[-- Attachment #1.1: Type: text/plain, Size: 1406 bytes --]
JH,
To enable systemd service for your application your recipe needs to
inherit the systemd class and install the service file in the proper
directory. Here is what it should look like:
inherit systemd
SYSTEMD_SERVICE_${PN} = "my-app.service"
SYSTEMD_AUTO_ENABLE = "enable"
do_install_append () {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/my-app.service ${D}${systemd_system_unitdir}
}
SYSTEMD_AUTO_ENABLE = "enable" is not strictly required as it is the
default. If you don't want to enable your service by default set the
variable to "disable".
:rjs
On 7/31/19 4:04 PM, JH wrote:
> HI,
>
> I have been struggling to find a fix for missing service file, I found
> another solution posted from the Internet to use FILES_${PN} +=
> "${systemd_system_unitdir}/dl-mgr.service" at the end of the bb file:
>
> install -d ${D}${systemd_system_unitdir}
> install -m 0644 ${WORKDIR}/dl-mgr.service ${D}${systemd_system_unitdir}
>
> As well as this to the end of the .bb file
>
> FILES_${PN} += "${libexecdir}/dl-mgr.sh"
> FILES_${PN} += "${systemd_system_unitdir}/dl-mgr.service"
>
> But I could not build it "unprased line FILES_${PN} +=
> "${systemd_system_unitdir}/dl-mgr.service", could anyone help please?
>
> Thank you.
>
> Kind regards,
>
> - JH
--
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3396 x700
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Yocto build failed to include service file in /deplogy/images/image.wic.gz
2019-08-01 0:10 ` Rudolf J Streif
@ 2019-08-01 6:39 ` JH
0 siblings, 0 replies; 3+ messages in thread
From: JH @ 2019-08-01 6:39 UTC (permalink / raw)
To: Rudolf J Streif; +Cc: Yocto discussion list
Thank you so much Rudolf, that was indeed solved the problem.
Great appreciate it.
Cheers.
- JH
On 8/1/19, Rudolf J Streif <rudolf.streif@ibeeto.com> wrote:
> JH,
>
> To enable systemd service for your application your recipe needs to
> inherit the systemd class and install the service file in the proper
> directory. Here is what it should look like:
>
> inherit systemd
>
> SYSTEMD_SERVICE_${PN} = "my-app.service"
> SYSTEMD_AUTO_ENABLE = "enable"
>
> do_install_append () {
> install -d ${D}${systemd_system_unitdir}
> install -m 0644 ${S}/my-app.service ${D}${systemd_system_unitdir}
> }
>
> SYSTEMD_AUTO_ENABLE = "enable" is not strictly required as it is the
> default. If you don't want to enable your service by default set the
> variable to "disable".
>
> :rjs
>
> On 7/31/19 4:04 PM, JH wrote:
>> HI,
>>
>> I have been struggling to find a fix for missing service file, I found
>> another solution posted from the Internet to use FILES_${PN} +=
>> "${systemd_system_unitdir}/dl-mgr.service" at the end of the bb file:
>>
>> install -d ${D}${systemd_system_unitdir}
>> install -m 0644 ${WORKDIR}/dl-mgr.service ${D}${systemd_system_unitdir}
>>
>> As well as this to the end of the .bb file
>>
>> FILES_${PN} += "${libexecdir}/dl-mgr.sh"
>> FILES_${PN} += "${systemd_system_unitdir}/dl-mgr.service"
>>
>> But I could not build it "unprased line FILES_${PN} +=
>> "${systemd_system_unitdir}/dl-mgr.service", could anyone help please?
>>
>> Thank you.
>>
>> Kind regards,
>>
>> - JH
>
> --
> -----
> Rudolf J Streif
> CEO/CTO ibeeto
> +1.855.442.3396 x700
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-01 6:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-31 23:04 Yocto build failed to include service file in /deplogy/images/image.wic.gz JH
2019-08-01 0:10 ` Rudolf J Streif
2019-08-01 6:39 ` JH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.