![Petr Kulhavy](/assets/img/avatar_default.png)
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>
14 lines
279 B
Desktop File
14 lines
279 B
Desktop File
[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]
|
|
ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|