[pkg-ntp-maintainers] Bug#370332: ntp: keep server list separate from other ntp.conf settings

Alain Guibert alguibert+bts at free.fr
Wed Feb 6 14:49:57 UTC 2008


Hello Drew,

 On Wednesday, February 6, 2008 at 14:43:08 +1100, Drew Parsons wrote:

> the server list could be read in from a separate file,
> /etc/ntp.servers say.  This could be done either as an #include
> mechanism reading /etc/ntp.conf (bug #370332 says this does not yet
> exist)

Note that ntp.conf can have an "includefile /etc/ntp.servers" command.
I verified it works well with the current ntp-dev version 4.2.5p111.
If the file doesn't exist, a warning message "getconfig: Couldn't open
</etc/ntp.servers>" is printed to the log, and the daemon just proceeds
without it, as usual.

Well, this does not solve everything: if the conf upgrade happens to
impact "server" lines (example appending "iburst" to them), or
intimately related things (like associated "restrict" lines), it will
not touch /etc/ntp.servers


Alain.





More information about the pkg-ntp-maintainers mailing list