[yocto] How to create a cronjob in Yocto recipe?

Nicolas Dechesne nicolas.dechesne at linaro.org
Fri May 3 05:56:19 PDT 2019


On Fri, May 3, 2019 at 1:32 PM JH <jupiter.hce at gmail.com> wrote:
>
> Hi,
>
> I try to figure out how to build cron job in Yocto image, my current
> image does not have /etc/cron.d, is it correct I need to install the
> cronie package (recipe
> https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-extended/cronie/cronie_1.5.4.bb)
> to packagegroup, to create /etc/cron.d, then I just need to install
> mycronjob.sh to the /etc/cron.d just like the desktop cron job, right?

yes, to both questions.

if you need example from other recipes, have a look at
meta-openembedded and run:
git grep ".*install.*cron"


>
> Thank you.
>
> Kind regards,
>
> - jupiter
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list