[ntp:questions] ntpd - gpsd communication

Miroslav Lichvar mlichvar at redhat.com
Mon Jun 8 10:01:45 UTC 2020

On 2020-06-08, ah at avtodoria.ru <ah at avtodoria.ru> wrote:
> понедельник, 8 июня 2020 г., 10:52:36 UTC+3 пользователь Miroslav
> Lichvar написал:
>> If you need something to report a large offset to ntpd via SHM, you
>> could try this program for testing leap seconds:
>> https://github.com/mlichvar/leapshm

> Thank you ver much. Please can you explain the params program uses.
> Second can be path to unix socket or something else starting not with
> "/" to use SHM. What about third param ?

It's the number of seconds before the hardcoded leap second time (1 Jul
2015 00:00:00 UTC) where the time fed by the program should start. E.g.
if it was 600, it would start 10 minutes before the midnight of the leap
second. You would probably want to start with a larger number (if you
don't want to test a leap second) and also change the LEAP_TIME constant
to a current date.

Miroslav Lichvar

More information about the questions mailing list