package/linuxptp: rename systemd service scripts

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>
Tested-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Heiko Thiery 2020-03-12 20:04:36 +01:00 committed by Thomas Petazzoni
parent 248229e3b7
commit bacd7f82bc
3 changed files with 6 additions and 6 deletions

View File

@ -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))

View File

@ -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

View File

@ -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