diff options
author | Martin Schwan <m.schwan@phytec.de> | 2025-07-30 10:35:31 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-30 08:03:04 -0700 |
commit | 31f0b9d3d51a65b1c3d63eb6520e7ab174a8550c (patch) | |
tree | 46afaab1c57a0b0c655f94d9bc575fc91e946c7a | |
parent | ffda36150ca18ef3b0ce5f234266897c00e51cee (diff) | |
download | meta-openembedded-31f0b9d3d51a65b1c3d63eb6520e7ab174a8550c.tar.gz |
linuxptp: Add systemd instance specifier for ptp4l dependency
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=Synchronize system clock or PTP hardware clock (PHC) | 2 | Description=Synchronize system clock or PTP hardware clock (PHC) |
3 | Documentation=man:phc2sys | 3 | Documentation=man:phc2sys |
4 | Requires=ptp4l.service | 4 | Requires=ptp4l@%i.service |
5 | After=ptp4l.service | 5 | After=ptp4l@%i.service |
6 | Before=time-sync.target | 6 | Before=time-sync.target |
7 | 7 | ||
8 | [Service] | 8 | [Service] |