shm refclock

Gary E. Miller gem at
Thu Apr 11 01:03:25 UTC 2019

Yo dropkick23 at!

On Wed, 10 Apr 2019 18:57:06 -0600
dropkick23 at wrote:

> Gary: build w/o droproot solved the problem, as referenced in other
> emails I used Before/After/Delay statements in service files to make
> sure nptd started first and gpsd waited 10 secs before starting.
> After building w/o droproot the statements in service files were not
> required.


> Hal: the problem was first detected when shm refclock did not show up
> in ntpq -p only servers from us.pool.  I than looked in ntpd.log and
> found REFCLOCK: SHM shmget (unit 1): Permission denied and  REFCLOCK:
> SHM shmget (unit 0): Permission denied.

Sure feels like a droproot permission problem.

> startup cmds from service files:
> ExecStart=/usr/bin/ntpd -g -N -u ntp:ntp -c /etc/ntp.conf
> ExecStart=/usr/local/sbin/gpsd /dev/gpsd0

Uh, not quite right.  You should always use "-n" for gpsd when using
ntpd.  Otherwise gpsd can stop talking to the GPS.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the users mailing list