[yocto] Running systemd service including boot time

Khem Raj raj.khem at gmail.com
Wed Nov 6 12:22:21 PST 2019


On Wed, Nov 6, 2019 at 12:17 PM JH <jupiter.hce at gmail.com> wrote:
>
> Hi,
>
> I built Yocto image to include a systemd service and it's timer, the
> timer calls the service repeated every 30 minutes, it runs well, but I
> need it also run it first time in the boot, not wait 30 minutes. I
> tried to add OnBootSec=2, it does not run in boot, any tips how can I
> force it run immediately in boot?
>
> OnBootSec=2

I wonder if 2s is too less of an elapsed time. Could you test setting
it to say 30s

> OnActiveSec=30min
>
> Thank you.
>
> Kind regards,
>
> - jh
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list