|Re: [chrony-users] Setting up Chrony with PPS|
[ Thread Index |
| More chrony.tuxfamily.org/chrony-users Archives
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Setting up Chrony with PPS
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Fri, 19 Feb 2016 16:46:36 +1300
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject; bh=yXcPujTOe/vBAxT37GulgIJ3xHIjyzRADuQOsXDyKJc=; b=ZkflG4L3IlVR I/pcdKif01OEZu2NmfWx3rduw7JHASl3xxJKgxHO6MNWp56h/QgeCFY/em6IccG7SuG2t1ZjCjgPP GYpRhvAMlS1q+bsTbfDpKxO6IzH2ZtJ7wMySgF5BrG5wBiKSdRrejO81E5zb7gxbwu/Xgss2JICAm DbufvBNA2ptatBDeB/oRsaISd/ol5wdBMwWXOMGiOcvEjBiE+A9diGYkMn5suckDfMH/+CqyEALNa O0cy3YAfIPs4lffI3q7gsjtFa4Z+aFoHPwWTCTyGToZgDHbrnUa6si7P06xrMWEHFlg//SjRJh2AS aMNFiFmlWDZiKWai7r6LDw==;
- Feedback-id: 149811m:149811acx33YQ:149811s0qfy59KtE:SMTPCORP
> On 19/02/2016, at 4:41 PM, Tomalak Geret'kal <tom@xxxxxxxxx> wrote:
> On 19/02/2016 03:08, Bryan Christianson wrote:
>> 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.
> Isn't that backwards? How would gpsd know what socket to write to?
> Generally the model is the writer (which doesn't know what wants to receive) creates the file and the receiver (which knows what it wants to receive) opens it.
> We can see that here by the presence of gpsd.sock.
Yes - I agree it does seem a little odd, but for good reason
"gpsd, when run as root, feeds reference clock information to chronyd using a socket named /var/run/chrony.ttyXX.sock (where ttyXX is replaced by the GPS receiver’s device name. This allows multiple GPS receivers to feed one chronyd.
No gpsd configuration is required to talk to chronyd. chronyd is configured using the file /etc/chrony.conf or /etc/chrony/chrony.conf. Check your distributions documentation for the correct location. To get chronyd to connect to gpsd using the basic ntpd compatible SHM method add this to use this basic chrony.conf file:”
i.e. gpsd uses a naming convention and the socket as configured in chronyd also uses that same convention
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.