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:
parent
248229e3b7
commit
bacd7f82bc
@ -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))
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user