Create the UNIT File

Enhanced PTP User Guide (UG1602)

Document ID
UG1602
Release Date
2023-04-07
Revision
1.1 English

Create the sfptpd.service unit file as /etc/systemd/system/sfptpd.service:

[Unit]
Description=sfptpd
DefaultDependencies=true
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/sbin/sfptpd -f/<path>/ptp_slave.cfg
[Install]
WantedBy=multi-user.target

The above example ensures that sfptpd is not started until the network-online.target is available to ensure that all network interfaces are configured and in an ‘up’ state before sfptpd is started. The sfptpd interface can be specified in the ptp_slave.cfg file.

Note: You should be aware of the following:
  • The full path is required to the sfptpd config file.
  • The sfptpd interface must be configured with an IP address and must be in an up state before sfptpd can be run.
  • Run systemctl daemon-reload after changes are made to the unit file.