Re: [chrony-users] Setting up Chrony with PPS

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


> On 19/02/2016, at 3:57 PM, Bill Unruh <unruh@xxxxxxxxxxxxxx> wrote:
> 
> 
> 
> William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
> Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
> UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
> Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/
> 
> On Thu, 18 Feb 2016, Deven Hickingbotham wrote:
> 
>> First off, thanks for all of the responses!  I'm testing your suggestions as fast as I can and if I apologize if  I don't directly reply to a suggestion.
>> 
>>> Does /var/run/chrony.ttyAMA0.sock exist? If not, then it is hard to read
>>> from
>>> it. Your gpsd does not seem to be writing to SHM0
>> 
>> Yes, it does exist:
>> 
>> pi@gps /var/run $ ls -l *.sock
>> srwxr-xr-x 1 root root 0 Feb 18 16:23 chrony.ttyAMA0.sock
>> srw-rw---- 1 root root 0 Feb 18 15:43 dhcpcd.sock
>> srw-rw-rw- 1 root root 0 Feb 18 15:43 dhcpcd.unpriv.sock
>> srwxr-xr-x 1 root root 0 Feb 18 16:23 gpsd.sock
> 
> OK, not sure what it does 
>> 
>> But I don't think it existed before I configured chrony.
> 
> I suspect it is a socket that chrony listens to, but there needs to be
> something that actually writes to that socket as well. But I have never used sockets on chrony so have no idea.

My understanding is that chrony.ttyAMA0.sock is a socket created by chronyd and listened to by chronyd

When gpsd starts, it checks to see if the socket exists and writes the PPS data to it.

Thus chronyd has to be running before gpsd is started. After a reboot of my RPi 2 (debian stretch/sid) I usually kill both daemons and start them manually in the correct order. The default systemd dependencies are wrong or maybe non-existent - who knows with that piece of awfulness - and I don’t want to spend the time investigating

—- 
Bryan Christianson
bryan@xxxxxxxxxxxxx




--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/