Apologies for the delay in responding. Your mail got filtered to a folder that I don't check frequently. I only just saw your mail while preparing a new upload.
Cédric Boudinet <[email protected]> writes: > Hello > Installed with apt linuxptp and I am trying to configure the ptp4l service. > As explained in /usr/share/doc/linuxptp, I created the directory > /etc/systemd/system/ptp4l.service.d > and the configuration file (/etc/systemd/system/ptp4l.service.d/cedric.conf) > with the parameters: > [Service] > ExecStart= > ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i enp4s2 -2 > > I do not start phc2sys. Is it mandatory? > > Then I try to start the service: > $ sudo systemctl start ptp4l > But it fails with this message: > Failed to start ptp4l.service: Unit ptp4l.service not found. > > Can you help me to configure this service? I've just uploaded a new version 4.0 to unstable. The instructions to enable systemd services were out of date - the new upload updates these. Quoting from the README - | 2. Systemd services | | linuxptp package ships with service templates for ptp4l and | phc2sys. The services need to be instantiated for the required network | interface. | | For instance, to instantiate ptp4l service for eth2, | | $ systemctl enable ptp4l@eth2 | $ systemctl enable ptp4l@eth2 | | Replace 'eth2' with the actual network interface. | | The service phc2sys syncs the system clock with the PTP clock. It is not | enabled and started by default. To activate this service, invoke the | following commands as root: | | $ systemctl enable phc2sys@<interface> | $ systemctl start phc2sys@<interface> | | Replace '<interface>' with the actual port, e.g., eth2. Hope this helps. Regards, Punit

