NTPD + GPS does not start with the GPS peer

Hmmm..

If I rc.conf start NTPD ntpd_enable="YES" then I don't get my 127.127.20.1 serial port PPS GPS peer.

If I do this from root.. Starts right up with the GPS peer.. /usr/local/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g -N

No errors in any of the normal places...

I have not tried delaying start yet. Maybe that might do it ?
 
I don't get my 127.127.20.1 serial port PPS GPS peer.
Is there a service running that provides this? It might get started at a later point in time, after ntpd was already started. See rcorder(8). You might need to modify the rc.d(8) script so ntpd is started after the GPS service.
 
See /etc/rc.d/ntpd, it will try to run ntpd as user ntpd. Check that with ps -au. That user ntpd may not be able to access your serial ports.
Yepper... Permissions..

I did a own in devfs.conf for the link to the serial port.. All fixed..

link cuau3 gps1
own gps1 ntpd:wheel

Thank you :)

Now I gotta go figure out something else noobie,, I gotta add a -N to my rc.conf started NTP

rc.conf starts it as
/usr/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g

and I want
/usr/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g -N

Off to google land :)

I am quite happy with the setup. With a Garmin 18x lvc on a serial port doing PPS and a custom kernel with the option PPS_SYNC I am getting really stunning performance. Its just fun to have a crazy accurate NTP server on my network.
 
Is there a service running that provides this? It might get started at a later point in time, after ntpd was already started. See rcorder(8). You might need to modify the rc.d(8) script so ntpd is started after the GPS service.

Thank you. I used the 127.127.20.1 option and this is much simpler and so no need to run GPSD and shared memory.

It was a much simpler issue, noobyness. Just permissions..

Thank you for helping :)
 
Back
Top