Skip to contentSkip to conversation

meta-systemd: ntp: Fix ntpdate.service file to use right binary

PATCH In review Otavio Salvador 2 participants 3 messages Oct 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-systemd: ntp: Fix ntpdate.service file to use right binary

---
 .../recipes-support/ntp/ntp/ntpdate.service        |    2 +-
 .../recipes-support/ntp/ntp_4.2.6p5.bbappend       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service +1 -1
index b2bc632..8df9970 100644
@@ -4,7 +4,7 @@ Before=ntpd.service
 
 [Service]
 Type=oneshot
-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org
 RemainAfterExit=yes
 
 [Install]
meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend +1 -1
index c6cd031..dbf3145 100644
@@ -1,6 +1,6 @@
 inherit systemd
 
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 13 lines · On Wednesday 31 October 2012 10:01:43 Otavio Salvador wrote:
---
 .../recipes-support/ntp/ntp/ntpdate.service        |    2 +-
 .../recipes-support/ntp/ntp_4.2.6p5.bbappend       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service b/meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service index b2bc632..8df9970 100644

meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service Before=ntpd.service · line 7

Quoted 5 lines
meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service +1 -1
@@ -4,7 +4,7 @@ Before=ntpd.service
 
 [Service]
 Type=oneshot
-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org

We *cannot* use pool.ntp.org for the reasons already discussed.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 15 lines · Paul Eggleton
Quoted 14 lines · On Wednesday 31 October 2012 10:01:43 Otavio Salvador wrote:
---
 .../recipes-support/ntp/ntp/ntpdate.service        |    2 +-
 .../recipes-support/ntp/ntp_4.2.6p5.bbappend       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service b/meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service index b2bc632..8df9970 100644

meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service +0 -0
@@ -4,7 +4,7 @@ Before=ntpd.service
 
Quoted 6 lines

meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service Before=ntpd.service · line 7

Quoted 4 lines
meta-systemd/meta-networking/recipes-support/ntp/ntp/ntpdate.service +1 -1
 [Service]
 Type=oneshot
-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org

We *cannot* use pool.ntp.org for the reasons already discussed.

Do you have a pointer for this discussion?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br