gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Feeding chrony from GPSD


From: Yakov Shmulevich
Subject: Re: [gpsd-users] Feeding chrony from GPSD
Date: Thu, 3 Apr 2014 13:58:12 +0300




On Thu, Apr 3, 2014 at 10:58 AM, Miroslav Lichvar <address@hidden> wrote:
On Wed, Apr 02, 2014 at 04:40:16PM +0300, Yakov Shmulevich wrote:
> > I put in chrony.conf the follow:
> > refclock SOCK /var/run/chrony.ttyUSB1.sock refid PPS
> >
> > Is it right?
> >
>
> I am running gpsd -D 8, and it not print  "RAW: PPS using chrony socket:
> ..." at all.

No other messages related to chrony socket? According to the gpsd-3.9
code it should print "PPS chrony socket %s doesn't exist", "PPS can
not connect chrony socket: %s", or "PPS using chrony socket: %s".

Can you post your -D 8 output? (few seconds since start should be enough)

First of all Miroslav, thanks for cooperation.
Ok, now I have a new information. First I found follow log message:
"PPS chrony socket /tmp/chrony.ttyUSB1.sock doesn't exist"

Although I am a root (I am working in CentOs), I changed in chrony.conf the definition to follow:
refclock SOCK /tmp/chrony.ttyUSB1.sock refid PPS

After that I got the follow log message:
"PPS can not connect chrony socket: /tmp/chrony.ttyUSB1.sock"

and in the /tmp:
address@hidden ~]# ls -al /tmp/chrony.ttyUSB1.sock 
srwxr-xr-x 1 root root 0 Apr  3 13:25 /tmp/chrony.ttyUSB1.sock

Then I checked the gpsd owner and got the follow:
address@hidden ~]# ps aux | grep gpsd
nobody   18921  0.4  0.0  33188  1468 ?        S<sl 13:32   0:02 gpsd -b -n /dev/ttyUSB1

So, the gpsd change the owner from "root" to "nobody".
I think that this is the root cause of the problem.
Now, the question how to prevent from gpsd to change the owner?

Thanks,
Yakov

--
Miroslav Lichvar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]