Dear Miroslav,
Now I set /etc/sysconfig/phc2sys file as below,
[root@localhost ~]# cat /etc/sysconfig/phc2sys
OPTIONS="-a -r -r"
#OPTIONS=”-s CLOCK_REALTIME -c eno2 -w”
Then the service become active.
[root@localhost ~]# systemctl status phc2sys
● phc2sys.service - Synchronize system clock or PTP hardware clock (PHC)
Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled; vendor
preset: disabled)
Active: active (running) since Tue 2019-10-01 12:01:54 EDT; 2min 22s ago
Main PID: 12173 (phc2sys)
Tasks: 1 (limit: 26213)
Memory: 376.0K
CGroup: /system.slice/phc2sys.service
└─12173 /usr/sbin/phc2sys -a -r -r
Thank you very much....
Best Regards,
Ganganath
-----Original Message-----
From: Miroslav Lichvar <[email protected]>
Sent: Tuesday, October 1, 2019 05:52 PM
To: [email protected]
Cc: 'Richard Cochran' <[email protected]>; 'Christian Leeb'
<[email protected]>; [email protected]
Subject: Re: [Linuxptp-users] phc2sys in fail status
On Tue, Oct 01, 2019 at 04:48:17PM +0530, [email protected] wrote:
> Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled;
> vendor
> preset: disabled)
> Active: failed (Result: exit-code) since Tue 2019-10-01 05:25:52
> EDT; 59min ago
> Process: 4169 ExecStart=/usr/sbin/phc2sys $OPTIONS (code=exited,
> status=255)
> Main PID: 4169 (code=exited, status=255)
>
> But phc2sys -w -s eno2 -m output work properly
What is in the /etc/sysconfig/phc2sys file?
--
Miroslav Lichvar
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users