Thanks Richard,

ptp4l & is fine for us.

BTW: 
$! returns pid. 
$? returns status .

Regards, Chris

-----Original Message-----
From: Richard Cochran [mailto:richardcoch...@gmail.com] 
Sent: Montag, 6. August 2018 01:29
To: Christian Leeb <christian.l...@ch.abb.com>
Cc: linuxptp-users@lists.sourceforge.net
Subject: Re: [Linuxptp-users] Starting ptp4l as daemon

CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


On Sun, Aug 05, 2018 at 07:41:19PM +0000, Christian Leeb wrote:
> What is the suggested way to start ptp4l as daemon?

I suggest:

   cd / && ptp4l &

If you want to monitor the execution status, there are multiple ways to do 
this.  For example, in bash:

    pid=$?
    wait $pid

If you are using systemd, there are ways to monitor and restart (if
desired) services.  Here is a very simple example from debian:

    
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsalsa.debian.org%2Fmultimedia-team%2Flinuxptp%2Fblob%2Fmaster%2Fdebian%2Fptp4l.service&amp;data=02%7C01%7Cchristian.leeb%40ch.abb.com%7Cae36b1dbe86743e7f1cd08d5fb2b3ddc%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636691085501308342&amp;sdata=TIepk9wQiz5kMIyde4mzGAsZQVjTWvuVWh4IiXJZvmg%3D&amp;reserved=0

Note that here systemd takes care of running in the background automatically.

HTH,
Richard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to