From: Heiko Thiery <heiko.thiery@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 2/2] package/linuxptp: rename systemd service scripts
Date: Thu, 12 Mar 2020 20:04:36 +0100 [thread overview]
Message-ID: <20200312190434.973-3-heiko.thiery@gmail.com> (raw)
In-Reply-To: <20200312190434.973-1-heiko.thiery@gmail.com>
Use the same name as for the SysVinit scripts. This name is also used in
debian.
linuxptp-system-clock.service -> phc2sys.service
linuxptp.service -> ptp4l.service
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Tested-by: Carlos Santos <unixmania@gmail.com>
---
package/linuxptp/linuxptp.mk | 8 ++++----
.../{linuxptp-system-clock.service => phc2sys.service} | 2 +-
package/linuxptp/{linuxptp.service => ptp4l.service} | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
rename package/linuxptp/{linuxptp-system-clock.service => phc2sys.service} (89%)
rename package/linuxptp/{linuxptp.service => ptp4l.service} (87%)
diff --git a/package/linuxptp/linuxptp.mk b/package/linuxptp/linuxptp.mk
index ba57396f86..921c55ad59 100644
--- a/package/linuxptp/linuxptp.mk
+++ b/package/linuxptp/linuxptp.mk
@@ -40,10 +40,10 @@ define LINUXPTP_INSTALL_INIT_SYSV
endef
define LINUXPTP_INSTALL_INIT_SYSTEMD
- $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp.service \
- $(TARGET_DIR)/usr/lib/systemd/system/linuxptp.service
- $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp-system-clock.service \
- $(TARGET_DIR)/usr/lib/systemd/system/linuxptp-system-clock.service
+ $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/ptp4l.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/ptp4l.service
+ $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/phc2sys.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/phc2sys.service
endef
$(eval $(generic-package))
diff --git a/package/linuxptp/linuxptp-system-clock.service b/package/linuxptp/phc2sys.service
similarity index 89%
rename from package/linuxptp/linuxptp-system-clock.service
rename to package/linuxptp/phc2sys.service
index 57beec4579..63b0ca23c3 100644
--- a/package/linuxptp/linuxptp-system-clock.service
+++ b/package/linuxptp/phc2sys.service
@@ -1,6 +1,6 @@
[Unit]
Description=Precision Time Protocol system clock synchronization
-After=linuxptp.service
+After=ptp4l.service
[Service]
ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
diff --git a/package/linuxptp/linuxptp.service b/package/linuxptp/ptp4l.service
similarity index 87%
rename from package/linuxptp/linuxptp.service
rename to package/linuxptp/ptp4l.service
index 14e9814b06..07f0b68fad 100644
--- a/package/linuxptp/linuxptp.service
+++ b/package/linuxptp/ptp4l.service
@@ -3,7 +3,7 @@ Description=Precision Time Protocol daemon
After=syslog.target network.target
Before=time-sync.target
Wants=time-sync.target
-Wants=linuxptp-system-clock.service
+Wants=phc2sys.service
[Service]
ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
--
2.20.1
next prev parent reply other threads:[~2020-03-12 19:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-12 19:04 [Buildroot] [PATCH v4 0/1] package/linuxptp: make initscript options configurable Heiko Thiery
2020-03-12 19:04 ` [Buildroot] [PATCH v4 1/2] " Heiko Thiery
2020-03-12 20:39 ` Carlos Santos
2020-03-12 21:09 ` Heiko Thiery
2020-03-14 14:38 ` Thomas Petazzoni
2020-03-12 19:04 ` Heiko Thiery [this message]
2020-03-12 20:40 ` [Buildroot] [PATCH v4 2/2] package/linuxptp: rename systemd service scripts Carlos Santos
2020-03-14 14:38 ` Thomas Petazzoni
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=20200312190434.973-3-heiko.thiery@gmail.com \
--to=heiko.thiery@gmail.com \
--cc=buildroot@busybox.net \
/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.