diff mbox series

[meta-oe] linuxptp: Add systemd instance specifier for ptp4l dependency

Message ID 20250730083531.1363074-1-m.schwan@phytec.de
State Under Review
Headers show
Series [meta-oe] linuxptp: Add systemd instance specifier for ptp4l dependency | expand

Commit Message

Martin Schwan July 30, 2025, 8:35 a.m. UTC
Add the instance specifier to the ptp4l dependency for the phc2sys
service, so the corresponding service is automatically started
correctly. This fixes the following error messages, when starting the
phc2sys@... service:

    Failed to restart phc2sys@eth0.service: Unit ptp4l.service not found.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
---
 .../linuxptp/linuxptp/systemd/phc2sys@.service.in             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in b/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
index f66dd2d010..7d1d975ea3 100644
--- a/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
+++ b/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
@@ -1,8 +1,8 @@ 
 [Unit]
 Description=Synchronize system clock or PTP hardware clock (PHC)
 Documentation=man:phc2sys
-Requires=ptp4l.service
-After=ptp4l.service
+Requires=ptp4l@%i.service
+After=ptp4l@%i.service
 Before=time-sync.target
 
 [Service]