Re: [Linuxptp-users] Question about how to run linuxptp as a service daemon
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Keller, J. E <jac...@in...> - 2022-08-10 21:41:40
|
> -----Original Message----- > From: Miroslav Lichvar <mli...@re...> > Sent: Wednesday, August 10, 2022 12:21 AM > To: james jeong <jam...@gm...> > Cc: lin...@li... > Subject: Re: [Linuxptp-users] Question about how to run linuxptp as a service > daemon > > On Wed, Aug 10, 2022 at 09:13:53AM +0900, james jeong wrote: > > Dear, > > > > We are using Ubuntu 20.04 LTS. > > I am trying to use linuxptp as a service daemon rather than an application. > > (The purpose is to automatically run ptp4l and phc2sys when the Master and > > Slave devices are booted.) > > The Ubuntu linuxptp package seems to contain systemd service files: > > /lib/systemd/system/phc2sys.service > /lib/systemd/system/ptp4l.service > /lib/systemd/system/timemaster.service > > and it has configuration files in /etc/linuxptp. > > You would just edit the configuration and enable the services you need > to run. > > -- > Miroslav Lichvar Yep, I'd recommend systemd or another service manager which converts the stdin/stdout behavior of ptp4l into backgrounding. Thanks, Jake |