Here's the chrony config I use.  Things of note:
* as shown, gpsd runs from /opt/gpsd - that's so I can run whatever
version I compile instead of whatever the distro ships with
* chronyd.service is unmodified from distro
* I'm using a USB gps which shows up as /dev/ttyACM0  - adjust to
whatever device you're

On Thu, Nov 6, 2025 at 12:59 PM Gary E. Miller <[email protected]> wrote:
>
> Yo All!
>
> Seems to be some confusion as the what state Suart is in and what
> he needs help with.  He left out some details he had shared with
> me privately.
>
> On Thu, 06 Nov 2025 07:59:36 -0500
> Stuart Blake Tener <[email protected]> wrote:
>
> > The main reason I remarked about the version I had was because Gary
> > had pointed out the version I had was some three years old. Whilst I
> > am happy with whatever version will work,
>
> The version of gpsd Stuart has is working fine with his 11 year old
> SiRF III.  No ned for him to update.  His cgps looks goos and
> ntpshmmon shows a good SHM(0).
>
> So there are no issues with his GPS, his gpsd, or hist system.  Any
> discussion of those is off topic.
>
> > Do you use chrony? How did you get chrony to talk to your GPS? I
> > think what I need are the right lines in chrony's configuration to
> > make the GPS be heard to chrony as a source.
>
> Yes, he uses chronyd, no it is not working for him.  He has a chronyd
> configuration issue.  That is the only on-topic thing left to discuss
> before he has chronyd working.
>
> I'll leave the chronyd stuff to those that use it.  Anything else is off
> topic to this issue.
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>         [email protected]  Tel:+1 541 382 8588
>
>             Veritas liberabit vos. -- Quid est veritas?
>     "If you can't measure it, you can't improve it." - Lord Kelvin



-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?

Attachment: chrony.conf
Description: Binary data

# /etc/systemd/system/gpsd.service
[Unit]
Description=GPS (Global Positioning System) Daemon
After=chrony.service

[Service]
Type=simple
EnvironmentFile=-/etc/default/gpsd
ExecStart=/opt/gpsd/sbin/gpsd $GPSD_OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target
# /etc/systemd/system/chronyd.service
[Unit]
Description=chrony, an NTP client/server
Documentation=man:chronyd(8) man:chronyc(1) man:chrony.conf(5)
Conflicts=openntpd.service ntp.service ntpsec.service
ConditionCapability=CAP_SYS_TIME

[Service]
Type=forking
PIDFile=/run/chrony/chronyd.pid
EnvironmentFile=-/etc/default/chrony
User=root
#User=_chrony
# Daemon is started as root, but still sandboxed
ExecStart=!/usr/sbin/chronyd $DAEMON_OPTS

CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE
CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_KILL CAP_LEASE CAP_LINUX_IMMUTABLE
CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_MKNOD CAP_SYS_ADMIN
CapabilityBoundingSet=~CAP_SYS_BOOT CAP_SYS_CHROOT CAP_SYS_MODULE CAP_SYS_PACCT
CapabilityBoundingSet=~CAP_SYS_PTRACE CAP_SYS_RAWIO CAP_SYS_TTY_CONFIG CAP_WAKE_ALARM
DeviceAllow=char-pps rw
DeviceAllow=char-ptp rw
DeviceAllow=char-rtc rw
DevicePolicy=closed
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateTmp=yes
ProcSubset=pid
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=strict
# Used for gps refclocks
ReadWritePaths=/run
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictSUIDSGID=no
SystemCallArchitectures=native
SystemCallFilter=~@cpu-emulation @debug @module @mount @obsolete @raw-io @reboot @swap

ConfigurationDirectory=chrony
RuntimeDirectory=chrony
RuntimeDirectoryMode=0700
# See dumpdir in chrony.conf(5)
RuntimeDirectoryPreserve=restart
StateDirectory=chrony
StateDirectoryMode=0750
LogsDirectory=chrony
LogsDirectoryMode=0750

# Adjust restrictions for /usr/sbin/sendmail (mailonchange directive)
NoNewPrivileges=no
ReadWritePaths=-/var/spool
RestrictAddressFamilies=AF_NETLINK

[Install]
Alias=chronyd.service
WantedBy=multi-user.target

Attachment: chrony
Description: Binary data

Attachment: gpsd
Description: Binary data

Attachment: dhcp.conf
Description: Binary data

Attachment: server.conf
Description: Binary data

Attachment: gpsd.conf
Description: Binary data

Attachment: nist.sources
Description: Binary data

Reply via email to