Re: [chrony-dev] [PATCH] nm-dispatcher: handle NTP servers from DHCP |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [PATCH] nm-dispatcher: handle NTP servers from DHCP
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Tue, 9 Jun 2020 11:54:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591696477; 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=L9m9SAj1H5KrENdzlyJpGWAQ7iFUpianac8mlDGG08A=; b=bB5RcL7GlnporJtcczp0Oz+GLdqJmlQ+dh+ZTyI6WEfpqy6J3t9ANz48/mDFHXdECO0HFE KrdpyZSIdbOGDI9AUSQC8H923LQ7Ng2Ux0QnvPcirjba1yE6yIz5t6kgGwuERjY8lOPAqV WJ2DJQx9BlDxbzJywjHtGpfwm+S0moA=
On Fri, Jun 05, 2020 at 06:23:21PM -0400, Robert Fairley wrote:
> Attached an interdiff of the overall changes from last comments.
>
> I have also updated https://src.fedoraproject.org/rpms/chrony/pull-request/3
> with the downstream patch that would be applied downstream to work with
> Fedora/RHEL.
Following up on the comments from bugzilla about reloading
configuration.
chronyd cannot easily support reloading its configuration (e.g. due to
losing root privileges), but it could have a directive specific to NTP
sources. The files could be reloaded on request from chronyc. It would
basically reimplement the logic from the chrony-helper script, which
would became redundant.
A dispatcher script would just create or remove a *.sources file in a
directory (e.g. /var/run/chrony-dhcp) specified in chrony.conf and a
chronyc command would tell chronyd to add the new sources and/or
remove sources that are no longer there.
All sources would be visible in chrony.conf. No need to set a PEERNTP
variable to disable the servers from DHCP.
I'll see what it would take to implement such directive.
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.