Re: [chrony-users] Chronyc Call to Add Refclock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chronyc Call to Add Refclock
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 7 Dec 2020 10:05:38 +0100
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607331941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hK2zpJjwuMiJjCpjEYA/LrnsifoUX/Py2xFDQEK+Pyw=; b=RRv240ymok7VQxPg3FNyaYK5WT5Lrfx2aI82ItD6i2yU4wOPqNW69pJLSd9uoDz0VPTFBk RzH/+PCzK//2ufUmW8t71NiB46kpm5FBKPpWXLX7s3dPKN8tDc0wjQgoB0yAMoB1ucvAQp SpU7rH49YIh1hMGGtRRLTPggTGZT/vA=
On Fri, Dec 04, 2020 at 08:22:03PM +0000, Chang, Benjamin wrote:
> Hello,
>
> Is there any way to add a refclock via a chronyc call similar to "chronyc add server?" I am trying to have my system sync to an ntp server first with an offset and then sync to a reference clock (a PPS). I want it so that when I start my code, it'll execute everything via the system("chronyc ") c call, which prevents me from just having the offset in the conf file since you can't edit the conf file indirectly.
No, refclocks cannot be added by chronyc. When chronyd is already
running, it's not expected to have the permissions needed to open
reference clocks.
There could be a new command added to change the offset of existing
sources.
> I've tried restarting chrony, then delete the ntp, reading the ntp with the offset, and then makestep. That works, but then itll only sync to the PPS half the time. Is there some combination of adding prefer and trust to make it work? I tried adding prefer and trust to the PPS and its still a gamble.
> I've tried looking into the selectdata call, but that doesn't seem to work?
I'm not sure what problem this is trying to solve.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.