From: Martin Ertsaas <martiert@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service
Date: Fri, 26 Oct 2012 10:58:40 +0200 [thread overview]
Message-ID: <1351241920-15135-2-git-send-email-martiert@gmail.com> (raw)
In-Reply-To: <1351241920-15135-1-git-send-email-martiert@gmail.com>
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
next prev parent reply other threads:[~2012-10-26 9:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-10-26 14:35 ` [meta-systemd][PATCH v2 2/2] meta-systemd: ntp: Fix starting of ntpdate.service Enrico Scholz
2012-10-26 15:07 ` Burton, Ross
2012-10-26 15:36 ` Martin Ertsås
2012-10-27 16:05 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351241920-15135-2-git-send-email-martiert@gmail.com \
--to=martiert@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.