All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] chrony: install chrony-wait.service
@ 2019-11-19 15:45 pdmorrow
  2019-11-20 14:39 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: pdmorrow @ 2019-11-19 15:45 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Morrow

From: Peter Morrow <peter.morrow@microsoft.com>

Any systemd service which needs to wait on ntp synchronization before
starting can order themselves after chrony-wait.service.  It's useful
to install this service as part of the recipe as it saves needing to
install it via a bbappend file.  Note that even if the service is
installed no start up delay is introduced unless another service
orders itself after the systemd target time-sync.target.

Signed-off-by: Peter Morrow <peter.morrow@microsoft.com>
---
 meta-networking/recipes-support/chrony/chrony_3.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-support/chrony/chrony_3.5.bb b/meta-networking/recipes-support/chrony/chrony_3.5.bb
index 7c6356d26..fa11c443e 100644
--- a/meta-networking/recipes-support/chrony/chrony_3.5.bb
+++ b/meta-networking/recipes-support/chrony/chrony_3.5.bb
@@ -103,6 +103,9 @@ do_install() {
     install -d ${D}${systemd_unitdir}/system
     install -m 0644 ${S}/examples/chronyd.service ${D}${systemd_unitdir}/system/
 
+    # systemd chronyd synchronization unit configuration file
+    install -m 0644 ${S}/examples/chrony-wait.service ${D}${systemd_unitdir}/system/
+
     # Variable data (for drift and/or rtc file)
     install -d ${D}${localstatedir}/lib/chrony
 
-- 
2.20.1



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

* Re: [meta-networking][PATCH] chrony: install chrony-wait.service
  2019-11-19 15:45 [meta-networking][PATCH] chrony: install chrony-wait.service pdmorrow
@ 2019-11-20 14:39 ` Khem Raj
  2019-11-20 16:03   ` Peter Morrow
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2019-11-20 14:39 UTC (permalink / raw)
  To: pdmorrow; +Cc: Peter Morrow, openembeded-devel

On Tue, Nov 19, 2019 at 7:46 AM <pdmorrow@gmail.com> wrote:
>
> From: Peter Morrow <peter.morrow@microsoft.com>
>
> Any systemd service which needs to wait on ntp synchronization before
> starting can order themselves after chrony-wait.service.  It's useful
> to install this service as part of the recipe as it saves needing to
> install it via a bbappend file.  Note that even if the service is
> installed no start up delay is introduced unless another service
> orders itself after the systemd target time-sync.target.
>
> Signed-off-by: Peter Morrow <peter.morrow@microsoft.com>
> ---
>  meta-networking/recipes-support/chrony/chrony_3.5.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta-networking/recipes-support/chrony/chrony_3.5.bb b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> index 7c6356d26..fa11c443e 100644
> --- a/meta-networking/recipes-support/chrony/chrony_3.5.bb
> +++ b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> @@ -103,6 +103,9 @@ do_install() {
>      install -d ${D}${systemd_unitdir}/system
>      install -m 0644 ${S}/examples/chronyd.service ${D}${systemd_unitdir}/system/
>
> +    # systemd chronyd synchronization unit configuration file
> +    install -m 0644 ${S}/examples/chrony-wait.service ${D}${systemd_unitdir}/system/
> +

thiis needs to be packages as well something like

FILES_${PN} = "${systemd_unitdir}/system/"
> +
>      # Variable data (for drift and/or rtc file)
>      install -d ${D}${localstatedir}/lib/chrony
>
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-networking][PATCH] chrony: install chrony-wait.service
  2019-11-20 14:39 ` Khem Raj
@ 2019-11-20 16:03   ` Peter Morrow
  2019-11-20 16:11     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Morrow @ 2019-11-20 16:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: Peter Morrow, openembeded-devel

On Wed, 20 Nov 2019 at 14:39, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Tue, Nov 19, 2019 at 7:46 AM <pdmorrow@gmail.com> wrote:
> >
> > From: Peter Morrow <peter.morrow@microsoft.com>
> >
> > Any systemd service which needs to wait on ntp synchronization before
> > starting can order themselves after chrony-wait.service.  It's useful
> > to install this service as part of the recipe as it saves needing to
> > install it via a bbappend file.  Note that even if the service is
> > installed no start up delay is introduced unless another service
> > orders itself after the systemd target time-sync.target.
> >
> > Signed-off-by: Peter Morrow <peter.morrow@microsoft.com>
> > ---
> >  meta-networking/recipes-support/chrony/chrony_3.5.bb | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/meta-networking/recipes-support/chrony/chrony_3.5.bb b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > index 7c6356d26..fa11c443e 100644
> > --- a/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > +++ b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > @@ -103,6 +103,9 @@ do_install() {
> >      install -d ${D}${systemd_unitdir}/system
> >      install -m 0644 ${S}/examples/chronyd.service ${D}${systemd_unitdir}/system/
> >
> > +    # systemd chronyd synchronization unit configuration file
> > +    install -m 0644 ${S}/examples/chrony-wait.service ${D}${systemd_unitdir}/system/
> > +
>
> thiis needs to be packages as well something like
>
> FILES_${PN} = "${systemd_unitdir}/system/"

Thanks Khem.  Strange my build did not show this up, I'll do some more
testing and re-submit.

> > +
> >      # Variable data (for drift and/or rtc file)
> >      install -d ${D}${localstatedir}/lib/chrony
> >
> > --
> > 2.20.1
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-networking][PATCH] chrony: install chrony-wait.service
  2019-11-20 16:03   ` Peter Morrow
@ 2019-11-20 16:11     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2019-11-20 16:11 UTC (permalink / raw)
  To: Peter Morrow; +Cc: Peter Morrow, openembeded-devel

On Wed, Nov 20, 2019 at 8:03 AM Peter Morrow <pdmorrow@gmail.com> wrote:
>
> On Wed, 20 Nov 2019 at 14:39, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Tue, Nov 19, 2019 at 7:46 AM <pdmorrow@gmail.com> wrote:
> > >
> > > From: Peter Morrow <peter.morrow@microsoft.com>
> > >
> > > Any systemd service which needs to wait on ntp synchronization before
> > > starting can order themselves after chrony-wait.service.  It's useful
> > > to install this service as part of the recipe as it saves needing to
> > > install it via a bbappend file.  Note that even if the service is
> > > installed no start up delay is introduced unless another service
> > > orders itself after the systemd target time-sync.target.
> > >
> > > Signed-off-by: Peter Morrow <peter.morrow@microsoft.com>
> > > ---
> > >  meta-networking/recipes-support/chrony/chrony_3.5.bb | 3 +++
> > >  1 file changed, 3 insertions(+)
> > >
> > > diff --git a/meta-networking/recipes-support/chrony/chrony_3.5.bb b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > > index 7c6356d26..fa11c443e 100644
> > > --- a/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > > +++ b/meta-networking/recipes-support/chrony/chrony_3.5.bb
> > > @@ -103,6 +103,9 @@ do_install() {
> > >      install -d ${D}${systemd_unitdir}/system
> > >      install -m 0644 ${S}/examples/chronyd.service ${D}${systemd_unitdir}/system/
> > >
> > > +    # systemd chronyd synchronization unit configuration file
> > > +    install -m 0644 ${S}/examples/chrony-wait.service ${D}${systemd_unitdir}/system/
> > > +
> >
> > thiis needs to be packages as well something like
> >
> > FILES_${PN} = "${systemd_unitdir}/system/"
>
> Thanks Khem.  Strange my build did not show this up, I'll do some more
> testing and re-submit.

I also wonder, how this was tested as well if it never showed up on
image. Please describe the testing part as well.

>
> > > +
> > >      # Variable data (for drift and/or rtc file)
> > >      install -d ${D}${localstatedir}/lib/chrony
> > >
> > > --
> > > 2.20.1
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-19 15:45 [meta-networking][PATCH] chrony: install chrony-wait.service pdmorrow
2019-11-20 14:39 ` Khem Raj
2019-11-20 16:03   ` Peter Morrow
2019-11-20 16:11     ` 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.