gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] [PATCH 1/2] Improve some details in time service documentatio


From: Miroslav Lichvar
Subject: [gpsd-dev] [PATCH 1/2] Improve some details in time service documentation.
Date: Fri, 29 Nov 2013 16:01:44 +0100

- allow NTP access in example chronyd configuration
- don't start chronyd with -s -r options as they need to be
  configured first, -f is needed only when using a non-default location
- fix some formatting and other minor details
---
 www/gpsd-time-service-howto.txt | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/www/gpsd-time-service-howto.txt b/www/gpsd-time-service-howto.txt
index c57b901..e72ac72 100644
--- a/www/gpsd-time-service-howto.txt
+++ b/www/gpsd-time-service-howto.txt
@@ -756,6 +756,9 @@ driftfile /var/lib/chrony/drift
 # the other sources and avoid the falseticker status
 refclock SHM 0 offset 0.9999 delay 0.2 refid GPS
 refclock SHM 1 refid PPS
+
+# allow NTP access from any IP address
+allow
 -----------------------------------------------------------------------------
 
 If you are outside of the USA replace the pool servers with one in your
@@ -782,6 +785,9 @@ driftfile /var/lib/chrony/drift
 # the other sources and avoid the falseticker status
 refclock SHM 0 offset 0.9999 delay 0.2 refid GPS
 refclock SOCK /var/run/chrony.ttyXX.sock refid PPS
+
+# allow NTP access from any IP address
+allow
 -----------------------------------------------------------------------------
 
 If not running as root change the "refclock SOCK" line to:
@@ -798,7 +804,7 @@ If running as root, the preferred starting procedure is:
 -----------------------------------------------------------------------------
 $ su - (or sudo -s )
 # killall -9 gpsd chronyd
-# chrony -f /etc/chrony/chrony.conf -s -r
+# chronyd
 # sleep 2
 # gpsd -n /dev/ttyXX
 # sleep 2
@@ -810,9 +816,8 @@ can check how chrony is doing by running 'chronyc sources'. 
 Your output
 will look like this:
 
 -----------------------------------------------------------------------------
-# chronyc sources
-
-210 Number of sources = 7
+$ chronyc sources
+210 Number of sources = 6
 MS Name/IP address         Stratum Poll Reach LastRx Last sample
 ===============================================================================
 #- GPS                           0   4   377    12  +3580us[+3580us] +/- 101ms
@@ -1050,7 +1055,7 @@ SHM 0 configured as:
 refclock SHM 0 poll 8 filter 1000 noselect
 
 -----------------------------------------------------------------------------
-# chronyc sourcestats
+$ chronyc sourcestats
 210 Number of sources = 6
 Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
 ==============================================================================
@@ -1060,10 +1065,10 @@ mort.cihar.com             21   8   72m      0.148      
0.798   +668us   490us
 vps2.martinpoljak.net       6   4   17m    -53.200    141.596    -24ms    15ms
 ntp1.kajot.cz              25  16   91m     -0.774      1.494    -11ms  1859us
 ntp1.karneval.cz           17  10   89m      0.127      0.539  -4131us   574us
+-----------------------------------------------------------------------------
 
 In this case (Garmin 18x) the offset specified in the config for the
 SHM 0 source should be around 0.495.
------------------------------------------------------------------------------
 
 //FIXME: What more can we say about chronyd tuning?
 
-- 
1.8.3.1




reply via email to

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