* [meta-systemd][PATCH v2 1/2] meta-systemd: ntp: Change version to what is used in meta-networking.
@ 2012-10-26 8:58 Martin Ertsaas
2012-10-26 8:58 ` [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service Martin Ertsaas
0 siblings, 1 reply; 6+ messages in thread
From: Martin Ertsaas @ 2012-10-26 8:58 UTC (permalink / raw)
To: openembedded-devel
Change version of ntp to match that in meta-networking. Also change ntpdate to ntp-date to
match the names used in meta-networking.
Signed-off-by: Martin Ertsaas <martiert@gmail.com>
---
.../recipes-support/ntp/ntp_4.2.6p3.bbappend | 20 --------------------
.../recipes-support/ntp/ntp_4.2.6p5.bbappend | 20 ++++++++++++++++++++
2 files changed, 20 insertions(+), 20 deletions(-)
delete mode 100644 meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
create mode 100644 meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
diff --git a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
deleted file mode 100644
index c6cd031..0000000
--- a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
+++ /dev/null
@@ -1,20 +0,0 @@
-inherit systemd
-
-PRINC := "${@int(PRINC) + 1}"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SYSTEMD_PACKAGES = "${PN}-systemd ntpdate-systemd"
-SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
-SYSTEMD_SERVICE_ntpdate-systemd = "ntpdate.service"
-
-SRC_URI += " \
- file://ntpdate.service \
- file://ntpd.service \
-"
-
-do_install_append() {
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
- install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
-}
diff --git a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
new file mode 100644
index 0000000..bc2b2dd
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
@@ -0,0 +1,20 @@
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SYSTEMD_PACKAGES = "${PN}-systemd ${PN}-date-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
+SYSTEMD_SERVICE_${PN}-date-systemd = "ntpdate.service"
+
+SRC_URI += " \
+ file://ntpdate.service \
+ file://ntpd.service \
+"
+
+do_install_append() {
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
+}
--
1.7.8.6
^ permalink raw reply related [flat|nested] 6+ messages in thread* [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service
2012-10-26 8:58 [meta-systemd][PATCH v2 1/2] meta-systemd: ntp: Change version to what is used in meta-networking Martin Ertsaas
@ 2012-10-26 8:58 ` Martin Ertsaas
2012-10-26 14:35 ` Enrico Scholz
0 siblings, 1 reply; 6+ messages in thread
From: Martin Ertsaas @ 2012-10-26 8:58 UTC (permalink / raw)
To: openembedded-devel
Make ntpdate.service run ntpdate instead of ntpd, as ntpd is not
necessarily installed. Also make ntpdate require network.target, as
you can not run ntpdate (or ntpd for that matter), without networking.
Signed-off-by: Martin Ertsaas <martiert@gmail.com>
---
.../recipes-support/ntp/ntp/ntpdate.service | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta-systemd/meta-oe/recipes-support/ntp/ntp/ntpdate.service b/meta-systemd/meta-oe/recipes-support/ntp/ntp/ntpdate.service
index b2bc632..a48d11d 100644
--- a/meta-systemd/meta-oe/recipes-support/ntp/ntp/ntpdate.service
+++ b/meta-systemd/meta-oe/recipes-support/ntp/ntp/ntpdate.service
@@ -1,10 +1,11 @@
[Unit]
Description=Network Time Service (one-shot ntpdate mode)
+Requires=network.target
Before=ntpd.service
[Service]
Type=oneshot
-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org
RemainAfterExit=yes
[Install]
--
1.7.8.6
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service
2012-10-26 8:58 ` [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service Martin Ertsaas
@ 2012-10-26 14:35 ` Enrico Scholz
2012-10-26 15:07 ` Burton, Ross
0 siblings, 1 reply; 6+ messages in thread
From: Enrico Scholz @ 2012-10-26 14:35 UTC (permalink / raw)
To: openembedded-devel
Martin Ertsaas <martiert@gmail.com> writes:
> Type=oneshot
> -ExecStart=/usr/bin/ntpd -q -g -x
> +ExecStart=/usr/bin/ntpdate pool.ntp.org
This should be made configurable. E.g.
Environment=NTPHOSTS=pool.ntp.org
EnvironmentFile=-/etc/sysconfig/ntp.conf
ExecStart=/usr/bin/ntpdate $NTPHOSTS
Enrico
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service
2012-10-26 14:35 ` Enrico Scholz
@ 2012-10-26 15:07 ` Burton, Ross
2012-10-26 15:36 ` Martin Ertsås
0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2012-10-26 15:07 UTC (permalink / raw)
To: openembedded-devel
On 26 October 2012 15:35, Enrico Scholz <enrico.scholz@sigma-chemnitz.de> wrote:
> Martin Ertsaas <martiert@gmail.com> writes:
>
>> Type=oneshot
>> -ExecStart=/usr/bin/ntpd -q -g -x
>> +ExecStart=/usr/bin/ntpdate pool.ntp.org
>
> This should be made configurable. E.g.
>
> Environment=NTPHOSTS=pool.ntp.org
> EnvironmentFile=-/etc/sysconfig/ntp.conf
> ExecStart=/usr/bin/ntpdate $NTPHOSTS
From http://www.pool.ntp.org/en/vendors.html:
"To allow you to use the pool as the default time service in your
application, we will set you up with special hostnames, for example
0.vendor.pool.ntp.org, 1.vendor.pool.ntp.org, 2.vendor.pool.ntp.org
and 3.vendor.pool.ntp.org.
You must absolutely not use the default pool.ntp.org zone names as the
default configuration in your application or appliance."
Someone -- probably someone on the TSC I suspect as a representative
of the YP -- should register a vendor pool so we can default to
0.yocto.pool.ntp.org or something similar.
Ross
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service
2012-10-26 15:07 ` Burton, Ross
@ 2012-10-26 15:36 ` Martin Ertsås
2012-10-27 16:05 ` Burton, Ross
0 siblings, 1 reply; 6+ messages in thread
From: Martin Ertsås @ 2012-10-26 15:36 UTC (permalink / raw)
To: openembedded-devel
On 10/26/12 17:07, Burton, Ross wrote:
> On 26 October 2012 15:35, Enrico Scholz<enrico.scholz@sigma-chemnitz.de> wrote:
>> Martin Ertsaas<martiert@gmail.com> writes:
>>
>>> Type=oneshot
>>> -ExecStart=/usr/bin/ntpd -q -g -x
>>> +ExecStart=/usr/bin/ntpdate pool.ntp.org
>> This should be made configurable. E.g.
>>
>> Environment=NTPHOSTS=pool.ntp.org
>> EnvironmentFile=-/etc/sysconfig/ntp.conf
>> ExecStart=/usr/bin/ntpdate $NTPHOSTS
> From http://www.pool.ntp.org/en/vendors.html:
>
> "To allow you to use the pool as the default time service in your
> application, we will set you up with special hostnames, for example
> 0.vendor.pool.ntp.org, 1.vendor.pool.ntp.org, 2.vendor.pool.ntp.org
> and 3.vendor.pool.ntp.org.
> You must absolutely not use the default pool.ntp.org zone names as the
> default configuration in your application or appliance."
>
> Someone -- probably someone on the TSC I suspect as a representative
> of the YP -- should register a vendor pool so we can default to
> 0.yocto.pool.ntp.org or something similar.
>
> Ross
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
That sounds like a good way to do it. Then we can simply use that as the
default, and have the possibility to use an NTPHOST or something.
Should we leave this until someone registers a pool, or what would be a
good default pool until someone does it?
- Martin
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-27 16:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 8:58 [meta-systemd][PATCH v2 1/2] meta-systemd: ntp: Change version to what is used in meta-networking Martin Ertsaas
2012-10-26 8:58 ` [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service Martin Ertsaas
2012-10-26 14:35 ` Enrico Scholz
2012-10-26 15:07 ` Burton, Ross
2012-10-26 15:36 ` Martin Ertsås
2012-10-27 16:05 ` Burton, Ross
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.