summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/ntp/ntp.inc
diff options
context:
space:
mode:
authorPeter A. Bigot <bigotp@acm.org>2012-01-04 02:21:05 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-01-05 10:15:55 +0100
commit42d6f4f36696faaf0e526b14bcc6daff51ab943b (patch)
treec05f6e11c9239ec68830cd085db988285e2777ae /meta-oe/recipes-support/ntp/ntp.inc
parentdc32361d19b49c9cb2df1d73dc61dfe7255a11b2 (diff)
downloadast2050-yocto-openembedded-42d6f4f36696faaf0e526b14bcc6daff51ab943b.zip
ast2050-yocto-openembedded-42d6f4f36696faaf0e526b14bcc6daff51ab943b.tar.gz
ntp: correct systemd EnvironmentFile, add ntpdate service
Eliminate EnvironmentFile from systemd unit descriptions. /etc/ntp.conf can't be sourced to set environment variables like NTPD_ARG. Following the rationale at http://0pointer.de/blog/projects/on-etc-sysinit.html it isn't needed anyway; if you don't buy that, it should be: EnvironmentFile=-/etc/default/ntpd Add one-shot ntpdate service which synchronizes local clock prior to starting ntpd (which aborts if the local time is more than 1000 seconds off of the server). "systemctl enable ntpdate.service" not done by default because this would be a behavior change. Correct comment describing how to replace ntpdate (ntpdc doesn't take those arguments). Add comment to ntp.conf pointing out need to remove local hardware clock as a reference when simulating ntpdate. Signed-off-by: Peter A. Bigot <bigotp@acm.org> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-support/ntp/ntp.inc')
-rw-r--r--meta-oe/recipes-support/ntp/ntp.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/ntp/ntp.inc b/meta-oe/recipes-support/ntp/ntp.inc
index b398b80..1d740f0 100644
--- a/meta-oe/recipes-support/ntp/ntp.inc
+++ b/meta-oe/recipes-support/ntp/ntp.inc
@@ -28,7 +28,8 @@ EXTRA_OECONF = "--without-openssl --without-crypto ac_cv_header_readline_history
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
PACKAGES += "ntpdate ${PN}-bin ${PN}-tickadj ${PN}-utils"
-# NOTE: you don't need ntpdate, use "ntpdc -q -g -x"
+# NOTE: you don't need ntpdate, use "ntpd -q -g -x"
+# or the ntpdate systemd service
# This should use rc.update
FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/init.d/ntpdate"
OpenPOWER on IntegriCloud