shm refclock

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


Yo dropkick23 at gmail.com!

On Wed, 10 Apr 2019 18:57:06 -0600
dropkick23 at gmail.com 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.

Good.

> 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.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  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: <https://lists.ntpsec.org/pipermail/users/attachments/20190410/8c27521a/attachment.bin>


More information about the users mailing list