Thank you Christian for your help, Unfortunately, it did not help, BUT! Your description pushed me to read system messages more carefully. So, I found how to make it work as a service that starts with the computer start.
1. I made mistake in the path of the configuration file path. The configuration file path for the Linux Mint, and probably for all Ubuntu systems is: /etc/linuxptp/ptp4l.conf And adding [interface_name] to the file did not work for me. But I started reading system messages more carefully and I found out where is the settings. 2. To setup interface this file needs to be edited: /lib/systemd/system/ptp4l.service I changed eth0 to my enp1s0 interface, and after daemon-reload command, this service starts and works flawlessly. Thank you community for your help. Ivan Zabaluyev IMDB Link <http://www.imdb.com/name/nm5263309/>@zabaluyev <https://twitter.com/zabaluyev>LinkedIn <http://www.linkedin.com/pub/zabaluyev-ivan/26/12a/121> ivan.zabalu...@gmail.com <mailto:ivan.zabalu...@gmail.com> phone: +1 424 249 0868 > On Nov 25, 2020, at 11:21 PM, Christian Soenke <csoe...@eso.org> wrote: > > Hi Ivan, > > if you want to specify the interface through /etc/ptp4l/ptp4l.conf you can do > this as follows: > > [global] > # Here goes all the global config > > [<if-name>] > # Here goes the interface specific config, can be empty > > If you leave the lines after [<if-name>] empty, then you just tell ptp4l that > this is the interface you want to work with and just use all global options > for it. > > But careful, this may be overwritten by command line arguments which e.g. for > RHEL/CentOS are coming from /etc/sysconfig/ptp4l and contains a line with > OPTIONS= > > It depends on the service configuration file (in my distro > /usr/lib/systemd/system/ptp4l.service) which files is used for the options – > don’t know for your distro. > > cheers, > Christian > > > Von: Ivan Zabaluyev <ivan.zabalu...@gmail.com> > Gesendet: Donnerstag, 26. November 2020 05:11 > An: Werner Macho <werner.ma...@gmail.com> > Cc: linuxptp-users@lists.sourceforge.net > Betreff: Re: [Linuxptp-users] Ptp4l as a service > > Thank you, Werner. > > But it did not help. > Yes, Linux Mint is Ubuntu based distro. > But as I previously said, configuration file for using ptp4l as a service > placed here: > > /etc/ptp4l/ptp4l.conf > > But I can’t find any lines dedicated to the interface. > That was the reason I was trying to add -i (myinterface) option are the end > of the line, > > systemctl start ptp4l -i enp1s0 > > but the Linux system did not get that options and generates errors: > > Failed to start enp1s0.service: Unit enp1s0.service not found. > > So, the best solution is to put name of the interface to the conf file > located here: > > /etc/ptp4l/ptp4l.conf > > > But where exactly , and what is the syntax of dedication of the interfaces. > > > Thank you in advance. > > > Best Regards. > > > Ivan Zabaluyev. > > > Sent from my iPad > > > On Nov 24, 2020, at 11:13 AM, Werner Macho <werner.ma...@gmail.com > <mailto:werner.ma...@gmail.com>> wrote: > > Hi! > > I am not 100% sure about Linux Mint, but as it is Ubuntu based you > should have a file called > > /etc/default/ptpd > > where you can set the options for the service .. > The service itself should only be started with one argument. > > So > systemctl start ptp4l > should be enough. > > Hope this helps > regards > Werner > > On Tue, Nov 24, 2020 at 7:26 PM Ivan Zabaluyev <ivan.zabalu...@gmail.com > <mailto:ivan.zabalu...@gmail.com>> wrote: > > > Dear community, > I am making my first steps in Linux. I am trying to use ptp4l as a Grand > Master for my AES67/RAVENNA test laboratory. I am not very familiar with > Linux, and probably make something wrong. I am using Linux Mint XFCE distro. > And everything is working fine when I am starting ptp4l as a program. But > when I am trying to start it as a service I am getting errors. > As I understand, and I tested it, when I am starting ptp4l as a service, > > systemctl start ptp4l > > parameters are taken from the /etc/ptp4l/ptp4l.conf file > but I can't find where to put the interface I need to use with the ptp4l > Whan I am trying to add options to the command, it is not working, probably > because it is not working that way. > So, when I am running: > > systemctl start ptp4l -i enp1s0 > > I am getting that: > > Failed to start enp1s0.service: Unit enp1s0.service not found. > > Please help me to start ptp4l as a service. > > Thank you in advance for your help. > > _______________________________________________ > Linuxptp-users mailing list > Linuxptp-users@lists.sourceforge.net > <mailto:Linuxptp-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > <https://lists.sourceforge.net/lists/listinfo/linuxptp-users>
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users