All of lore.kernel.org
 help / color / mirror / Atom feed
* Running systemd service including boot time
@ 2019-11-06 20:14 JH
  2019-11-06 20:22 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: JH @ 2019-11-06 20:14 UTC (permalink / raw)
  To: Yocto discussion list

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
OnActiveSec=30min

Thank you.

Kind regards,

- jh


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Running systemd service including boot time
  2019-11-06 20:14 Running systemd service including boot time JH
@ 2019-11-06 20:22 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2019-11-06 20:22 UTC (permalink / raw)
  To: JH; +Cc: Yocto discussion list

On Wed, Nov 6, 2019 at 12:17 PM JH <jupiter.hce@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-06 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 20:14 Running systemd service including boot time JH
2019-11-06 20:22 ` Khem Raj

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.