summaryrefslogtreecommitdiffstats
path: root/package/linuxptp/linuxptp.service
diff options
context:
space:
mode:
authorPetr Kulhavy <brain@jikos.cz>2018-01-28 17:00:20 +0100
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2018-10-21 23:02:24 +0100
commit85519fc6923c9b670350be2909f73da98ee05307 (patch)
tree71fdbb8d98a763b6ec68652202294f56e7b68040 /package/linuxptp/linuxptp.service
parent96123c1c4f1ee45636a0b6d540d6dfc17889e622 (diff)
downloadbuildroot-85519fc6923c9b670350be2909f73da98ee05307.tar.gz
buildroot-85519fc6923c9b670350be2909f73da98ee05307.zip
package: linuxptp: enhance systemd service
linuxptp now pulls in the time-sync.target, which other services can use to make sure they have a valid time before starting. phc2sys (linuxptp-system-clock.service) starts after ptp4l (linuxptp.service) so we have a valid time before writing it to the hardware clock. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/linuxptp/linuxptp.service')
-rw-r--r--package/linuxptp/linuxptp.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/linuxptp/linuxptp.service b/package/linuxptp/linuxptp.service
index f690430633..14e9814b06 100644
--- a/package/linuxptp/linuxptp.service
+++ b/package/linuxptp/linuxptp.service
@@ -1,6 +1,8 @@
[Unit]
Description=Precision Time Protocol daemon
After=syslog.target network.target
+Before=time-sync.target
+Wants=time-sync.target
Wants=linuxptp-system-clock.service
[Service]
OpenPOWER on IntegriCloud