<div dir="ltr"><div>Eric,a data point.  This works:</div><div><br></div><div>refclock shm unit 0 refid GPS time1 619315200.450 flag4 1 <br></div><div><br></div><div>(the large number is 1024 weeks, the 0.450 is a delay)<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-- <br>Sanjeev Gupta<br>+65 98551208     <a href="http://www.linkedin.com/in/ghane" target="_blank">http://www.linkedin.com/in/ghane</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 17, 2019 at 5:04 AM Eric S. Raymond <<a href="mailto:esr@thyrsus.com">esr@thyrsus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sanjeev Gupta <<a href="mailto:ghane0@gmail.com" target="_blank">ghane0@gmail.com</a>>:<br>
> Eric,<br>
> <br>
> My (minimal) config:<br>
> <br>
> root@ntpmon:~/ntpsec/docs# grep -v "^#" /etc/ntp.conf | grep -v "^$"<br>
> logfile /var/www/html/ntp/ntpd.log<br>
> logconfig =syncall +clockall +peerall +sysall<br>
> statsdir /var/www/html/ntp/<br>
> filegen loopstats  type day link<br>
> filegen peerstats  type day link<br>
> filegen protostats type day link<br>
> filegen rawstats   type day link<br>
> filegen sysstats   type day link<br>
> driftfile /var/lib/ntp/ntp.drift<br>
> statistics loopstats peerstats clockstats<br>
> refclock shm unit 0 refid GPS time1 0.650g flag4 1 # minpoll 1 maxpoll 5<br>
> restrict -4 default kod nomodify nopeer noquery limited<br>
> restrict -6 default kod nomodify nopeer noquery limited<br>
> restrict 127.0.0.1<br>
> restrict ::1<br>
> restrict source nomodify noquery<br>
> <br>
> <br>
> ntpd command line:<br>
> <br>
> root@ntpmon:~/ntpsec/docs# kill -9 `pidof ntpd` ; ntpd -D 100000<br>
> <br>
> Log file:<br>
> 2019-08-17T04:38:01 ntpd[22651]: INIT: Using SO_TIMESTAMPNS<br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen and drop on 0 v6wildcard<br>
> [::]:123<br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen and drop on 1 v4wildcard<br>
> <a href="http://0.0.0.0:123" rel="noreferrer" target="_blank">0.0.0.0:123</a><br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen normally on 2 lo <a href="http://127.0.0.1:123" rel="noreferrer" target="_blank">127.0.0.1:123</a><br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen normally on 3 eth1<br>
> <a href="http://203.123.48.219:123" rel="noreferrer" target="_blank">203.123.48.219:123</a><br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen normally on 4 lo [::1]:123<br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen normally on 5 eth1<br>
> [2405:fc00:0:1::123]:123<br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listen normally on 6 eth1<br>
> [fe80::204:23ff:feb8:1c1e%3]:123<br>
> 2019-08-17T04:38:01 ntpd[22651]: IO: Listening on routing socket on fd #23<br>
> for interface updates<br>
> 2019-08-17T04:38:01 ntpd[22651]: INIT: This system has a 32-bit time_t.<br>
> 2019-08-17T04:38:01 ntpd[22651]: INIT: This ntpd will fail on<br>
> 2038-01-19T03:14:07Z.<br>
> 2019-08-17T04:38:01 ntpd[22651]: PROTO: 0.0.0.0 c01d 0d kern kernel time<br>
> sync enabled<br>
> 2019-08-17T04:38:01 ntpd[22651]: PROTO: 0.0.0.0 c012 02 freq_set kernel<br>
> 39.594910 PPM<br>
> 2019-08-17T04:38:01 ntpd[22651]: PROTO: 0.0.0.0 c016 06 restart<br>
> 2019-08-17T04:38:01 ntpd[22651]: NTSc: Using system default root<br>
> certificates.<br>
> <br>
> <br>
> root@ntpmon:~/ntpsec/docs# ntpq -V<br>
> ntpq ntpsec-1.1.6+ 2019-08-16T20:21:12Z (git rev f99a58821)<br>
> root@ntpmon:~/ntpsec/docs# ntpq -pn<br>
> server=localhost No association IDs returned<br>
> <br>
> -- <br>
> Sanjeev Gupta<br>
> +65 98551208     <a href="http://www.linkedin.com/in/ghane" rel="noreferrer" target="_blank">http://www.linkedin.com/in/ghane</a><br>
> <br>
> <br>
> On Sat, Aug 17, 2019 at 3:50 AM Eric S. Raymond via devel <<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a>><br>
> wrote:<br>
> <br>
> > Sanjeev, would you please look in your logs and see if the config<br>
> > parser throws an error related to that line?<br>
> > --<br>
> >                 <a href="<a href="http://www.catb.org/~esr/" rel="noreferrer" target="_blank">http://www.catb.org/~esr/</a>">Eric S. Raymond</a><br>
> ><br>
> > You know why there's a Second Amendment?  In case the government fails to<br>
> > follow the first one.<br>
> >          -- Rush Limbaugh, in a moment of unaccustomed profundity 17 Aug<br>
> > 1993<br>
<br>
Odd that it's not throwing a parse error.<br>
<br>
Looks like I'll have to build some test jigs to get to the bottom of this.<br>
-- <br>
                <a href="<a href="http://www.catb.org/~esr/" rel="noreferrer" target="_blank">http://www.catb.org/~esr/</a>">Eric S. Raymond</a><br>
<br>
<br>
</blockquote></div>