Use more servers instead of pool

i9 changed/i9/chrony-4.3-1.el9.inferit.3
Arkady L. Shane 1 year ago
parent d96010e7df
commit 365ce38702
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -1,4 +1,4 @@
From 08cf035923b4eff6698d37948bb25b1414432b7a Mon Sep 17 00:00:00 2001 From 0e89d48f500c29f4370f77c438fa2ebeb80261bf Mon Sep 17 00:00:00 2001
From: Sergey Cherevko <s.cherevko@msvsphere.ru> From: Sergey Cherevko <s.cherevko@msvsphere.ru>
Date: Wed, 30 Aug 2023 17:02:52 +0300 Date: Wed, 30 Aug 2023 17:02:52 +0300
Subject: [PATCH] Synchronize time via Russian NTP servers Subject: [PATCH] Synchronize time via Russian NTP servers
@ -10,16 +10,16 @@ Subject: [PATCH] Synchronize time via Russian NTP servers
doc/chrony.conf.man.in | 12 +++++------- doc/chrony.conf.man.in | 12 +++++-------
doc/faq.adoc | 10 +++++----- doc/faq.adoc | 10 +++++-----
doc/installation.adoc | 4 ++-- doc/installation.adoc | 4 ++--
examples/chrony.conf.example1 | 4 ++-- examples/chrony.conf.example1 | 11 +++++++++--
examples/chrony.conf.example2 | 6 +++--- examples/chrony.conf.example2 | 12 +++++++++---
examples/chrony.conf.example3 | 4 ++-- examples/chrony.conf.example3 | 4 ++--
9 files changed, 30 insertions(+), 33 deletions(-) 9 files changed, 43 insertions(+), 33 deletions(-)
diff --git a/FAQ b/FAQ diff --git a/FAQ b/FAQ
index d68f885..5672baa 100644 index 2bbb24e..92b71d2 100644
--- a/FAQ --- a/FAQ
+++ b/FAQ +++ b/FAQ
@@ -105,10 +105,10 @@ next boot from the RTC, the rtcsync directive enables a mode in which the @@ -110,10 +110,10 @@ next boot from the RTC, the rtcsync directive enables a mode in which the
system time is periodically copied to the RTC. It is supported on Linux and system time is periodically copied to the RTC. It is supported on Linux and
macOS. macOS.
@ -32,7 +32,7 @@ index d68f885..5672baa 100644
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
makestep 1 3 makestep 1 3
rtcsync rtcsync
@@ -380,7 +380,7 @@ the -Q option it will print the measured offset without setting the clock. If @@ -392,7 +392,7 @@ the -Q option it will print the measured offset without setting the clock. If
you do not want to use a configuration file, NTP servers can be specified on you do not want to use a configuration file, NTP servers can be specified on
the command line. For example: the command line. For example:
@ -41,7 +41,7 @@ index d68f885..5672baa 100644
The command above would normally take about 5 seconds if the servers were well The command above would normally take about 5 seconds if the servers were well
synchronised and responding to all requests. If not synchronised or responding, synchronised and responding to all requests. If not synchronised or responding,
@@ -391,7 +391,7 @@ option to one (supported since chrony version 4.0), and a timeout can be @@ -403,7 +403,7 @@ option to one (supported since chrony version 4.0), and a timeout can be
specified with the -t option. The following command would take only up to about specified with the -t option. The following command would take only up to about
one second. one second.
@ -50,7 +50,7 @@ index d68f885..5672baa 100644
It is not recommended to run chronyd with the -q option periodically (e.g. from It is not recommended to run chronyd with the -q option periodically (e.g. from
a cron job) as a replacement for the daemon mode, because it performs a cron job) as a replacement for the daemon mode, because it performs
@@ -454,7 +454,7 @@ same server instance. @@ -466,7 +466,7 @@ same server instance.
An example configuration of the client instance could be An example configuration of the client instance could be
@ -60,7 +60,7 @@ index d68f885..5672baa 100644
port 11123 port 11123
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
diff --git a/INSTALL b/INSTALL diff --git a/INSTALL b/INSTALL
index 656537a..1dcbce2 100644 index e73dcd2..8633948 100644
--- a/INSTALL --- a/INSTALL
+++ b/INSTALL +++ b/INSTALL
@@ -116,10 +116,10 @@ make install-docs @@ -116,10 +116,10 @@ make install-docs
@ -77,10 +77,10 @@ index 656537a..1dcbce2 100644
rtcsync rtcsync
diff --git a/doc/chrony.conf.adoc b/doc/chrony.conf.adoc diff --git a/doc/chrony.conf.adoc b/doc/chrony.conf.adoc
index 21d2ce6..d41cfbd 100644 index 2cf5326..f9db123 100644
--- a/doc/chrony.conf.adoc --- a/doc/chrony.conf.adoc
+++ b/doc/chrony.conf.adoc +++ b/doc/chrony.conf.adoc
@@ -334,7 +334,7 @@ source with a newly resolved address of the name. @@ -356,7 +356,7 @@ sources responding to requests. The default value is 4 and the maximum value is
An example of the *pool* directive is An example of the *pool* directive is
+ +
---- ----
@ -89,7 +89,7 @@ index 21d2ce6..d41cfbd 100644
---- ----
[[peer]]*peer* _hostname_ [_option_]...:: [[peer]]*peer* _hostname_ [_option_]...::
@@ -2621,7 +2621,7 @@ the following methods: @@ -2731,7 +2731,7 @@ the following methods:
stratum 1 and stratum 2 servers. You should find one or more servers that are stratum 1 and stratum 2 servers. You should find one or more servers that are
near to you. Check that their access policy allows you to use their near to you. Check that their access policy allows you to use their
facilities. facilities.
@ -98,7 +98,7 @@ index 21d2ce6..d41cfbd 100644
Assuming that your NTP servers are called _foo.example.net_, _bar.example.net_ Assuming that your NTP servers are called _foo.example.net_, _bar.example.net_
and _baz.example.net_, your _chrony.conf_ file could contain as a minimum: and _baz.example.net_, your _chrony.conf_ file could contain as a minimum:
@@ -2654,7 +2654,7 @@ directive instead of multiple *server* directives. The configuration file could @@ -2764,7 +2764,7 @@ directive instead of multiple *server* directives. The configuration file could
in this case look like: in this case look like:
---- ----
@ -107,7 +107,7 @@ index 21d2ce6..d41cfbd 100644
driftfile @CHRONYVARDIR@/drift driftfile @CHRONYVARDIR@/drift
makestep 1.0 3 makestep 1.0 3
rtcsync rtcsync
@@ -2912,8 +2912,7 @@ information to be saved. @@ -3022,8 +3022,7 @@ information to be saved.
=== Public NTP server === Public NTP server
@ -118,10 +118,10 @@ index 21d2ce6..d41cfbd 100644
allow client access from all addresses. It is recommended to find at least four allow client access from all addresses. It is recommended to find at least four
good servers (e.g. from the pool, or on the NTP homepage). If the server has a good servers (e.g. from the pool, or on the NTP homepage). If the server has a
diff --git a/doc/chrony.conf.man.in b/doc/chrony.conf.man.in diff --git a/doc/chrony.conf.man.in b/doc/chrony.conf.man.in
index 8713321..795f4b3 100644 index 1a51b24..5c34507 100644
--- a/doc/chrony.conf.man.in --- a/doc/chrony.conf.man.in
+++ b/doc/chrony.conf.man.in +++ b/doc/chrony.conf.man.in
@@ -445,7 +445,7 @@ An example of the \fBpool\fP directive is @@ -467,7 +467,7 @@ An example of the \fBpool\fP directive is
.if n .RS 4 .if n .RS 4
.nf .nf
.fam C .fam C
@ -130,7 +130,7 @@ index 8713321..795f4b3 100644
.fam .fam
.fi .fi
.if n .RE .if n .RE
@@ -4124,7 +4124,7 @@ facilities. @@ -4502,7 +4502,7 @@ facilities.
. IP \(bu 2.3 . IP \(bu 2.3
.\} .\}
Use public servers from the \c Use public servers from the \c
@ -139,7 +139,7 @@ index 8713321..795f4b3 100644
project. project.
.RE .RE
.sp .sp
@@ -4169,7 +4169,7 @@ in this case look like: @@ -4547,7 +4547,7 @@ in this case look like:
.if n .RS 4 .if n .RS 4
.nf .nf
.fam C .fam C
@ -148,7 +148,7 @@ index 8713321..795f4b3 100644
driftfile @CHRONYVARDIR@/drift driftfile @CHRONYVARDIR@/drift
makestep 1.0 3 makestep 1.0 3
rtcsync rtcsync
@@ -4465,9 +4465,7 @@ before the final SIGKILL; the SIGTERM causes the measurement histories and RTC @@ -4843,9 +4843,7 @@ before the final SIGKILL; the SIGTERM causes the measurement histories and RTC
information to be saved. information to be saved.
.SS "Public NTP server" .SS "Public NTP server"
.sp .sp
@ -159,7 +159,7 @@ index 8713321..795f4b3 100644
is similar to the NTP client with permanent connection, except it needs to is similar to the NTP client with permanent connection, except it needs to
allow client access from all addresses. It is recommended to find at least four allow client access from all addresses. It is recommended to find at least four
good servers (e.g. from the pool, or on the NTP homepage). If the server has a good servers (e.g. from the pool, or on the NTP homepage). If the server has a
@@ -4513,4 +4511,4 @@ For instructions on how to report bugs, please visit @@ -4891,4 +4889,4 @@ For instructions on how to report bugs, please visit
.URL "https://chrony.tuxfamily.org/" "" "." .URL "https://chrony.tuxfamily.org/" "" "."
.SH "AUTHORS" .SH "AUTHORS"
.sp .sp
@ -167,7 +167,7 @@ index 8713321..795f4b3 100644
\ No newline at end of file \ No newline at end of file
+chrony was written by Richard Curnow, Miroslav Lichvar, and others. +chrony was written by Richard Curnow, Miroslav Lichvar, and others.
diff --git a/doc/faq.adoc b/doc/faq.adoc diff --git a/doc/faq.adoc b/doc/faq.adoc
index d1b4cf3..7125a7b 100644 index 1b299d2..470c451 100644
--- a/doc/faq.adoc --- a/doc/faq.adoc
+++ b/doc/faq.adoc +++ b/doc/faq.adoc
@@ -70,11 +70,11 @@ system time is periodically copied to the RTC. It is supported on Linux and @@ -70,11 +70,11 @@ system time is periodically copied to the RTC. It is supported on Linux and
@ -184,7 +184,7 @@ index d1b4cf3..7125a7b 100644
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
makestep 1 3 makestep 1 3
rtcsync rtcsync
@@ -362,7 +362,7 @@ clock. If you do not want to use a configuration file, NTP servers can be @@ -371,7 +371,7 @@ clock. If you do not want to use a configuration file, NTP servers can be
specified on the command line. For example: specified on the command line. For example:
---- ----
@ -193,7 +193,7 @@ index d1b4cf3..7125a7b 100644
---- ----
The command above would normally take about 5 seconds if the servers were The command above would normally take about 5 seconds if the servers were
@@ -375,7 +375,7 @@ timeout can be specified with the `-t` option. The following command would take @@ -384,7 +384,7 @@ timeout can be specified with the `-t` option. The following command would take
only up to about one second. only up to about one second.
---- ----
@ -202,7 +202,7 @@ index d1b4cf3..7125a7b 100644
---- ----
It is not recommended to run `chronyd` with the `-q` option periodically (e.g. It is not recommended to run `chronyd` with the `-q` option periodically (e.g.
@@ -442,7 +442,7 @@ the same server instance. @@ -451,7 +451,7 @@ the same server instance.
An example configuration of the client instance could be An example configuration of the client instance could be
---- ----
@ -212,7 +212,7 @@ index d1b4cf3..7125a7b 100644
port 11123 port 11123
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
diff --git a/doc/installation.adoc b/doc/installation.adoc diff --git a/doc/installation.adoc b/doc/installation.adoc
index 35ce9bf..d8f15ae 100644 index b683911..3750f85 100644
--- a/doc/installation.adoc --- a/doc/installation.adoc
+++ b/doc/installation.adoc +++ b/doc/installation.adoc
@@ -146,11 +146,11 @@ make install-docs @@ -146,11 +146,11 @@ make install-docs
@ -230,28 +230,41 @@ index 35ce9bf..d8f15ae 100644
rtcsync rtcsync
---- ----
diff --git a/examples/chrony.conf.example1 b/examples/chrony.conf.example1 diff --git a/examples/chrony.conf.example1 b/examples/chrony.conf.example1
index 5e93ea7..6442078 100644 index 5e93ea7..dd960ad 100644
--- a/examples/chrony.conf.example1 --- a/examples/chrony.conf.example1
+++ b/examples/chrony.conf.example1 +++ b/examples/chrony.conf.example1
@@ -1,5 +1,5 @@ @@ -1,5 +1,12 @@
-# Use public NTP servers from the pool.ntp.org project. -# Use public NTP servers from the pool.ntp.org project.
-pool pool.ntp.org iburst -pool pool.ntp.org iburst
+# Use public NTP servers from the https://www.vniiftri.ru/ project. +# Use Russian public NTP servers (vniiftri and msk-ix)
+pool ntp1.vniiftri.ru iburst +server ntp.msk-ix.ru iburst
+server ntp1.vniiftri.ru iburst
+server vniiftri2.khv.ru iburst
+server ntp1.niiftri.irkutsk.ru iburst
+server ntp.sstf.nsk.ru iburst
+server ntp2.vniiftri.ru iburst
+server ntp3.vniiftri.ru iburst
+server ntp4.vniiftri.ru iburst
# Record the rate at which the system clock gains/losses time. # Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
diff --git a/examples/chrony.conf.example2 b/examples/chrony.conf.example2 diff --git a/examples/chrony.conf.example2 b/examples/chrony.conf.example2
index bf2bbdd..6e5a993 100644 index bf2bbdd..61b4576 100644
--- a/examples/chrony.conf.example2 --- a/examples/chrony.conf.example2
+++ b/examples/chrony.conf.example2 +++ b/examples/chrony.conf.example2
@@ -1,6 +1,6 @@ @@ -1,6 +1,12 @@
-# Use public servers from the pool.ntp.org project. -# Use public servers from the pool.ntp.org project.
-# Please consider joining the pool (https://www.pool.ntp.org/join.html). -# Please consider joining the pool (https://www.pool.ntp.org/join.html).
-pool pool.ntp.org iburst -pool pool.ntp.org iburst
+# Use public servers from the https://www.vniiftri.ru/ project. +# Use Russian public NTP servers (vniiftri and msk-ix)
+# Synchronize time via NTP servers (https://www.vniiftri.ru/catalog/services/sinkhronizatsiya-vremeni-cherez-ntp-servera/). +server ntp.msk-ix.ru iburst
+pool ntp1.vniiftri.ru iburst +server ntp1.vniiftri.ru iburst
+server vniiftri2.khv.ru iburst
+server ntp1.niiftri.irkutsk.ru iburst
+server ntp.sstf.nsk.ru iburst
+server ntp2.vniiftri.ru iburst
+server ntp3.vniiftri.ru iburst
+server ntp4.vniiftri.ru iburst
# Record the rate at which the system clock gains/losses time. # Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
@ -276,5 +289,5 @@ index 4e3e3a8..db9d395 100644
####################################################################### #######################################################################
### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK ### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK
-- --
2.39.2 2.41.0

@ -9,7 +9,7 @@
Name: chrony Name: chrony
Version: 4.3 Version: 4.3
Release: 1%{?dist}.inferit.2 Release: 1%{?dist}.inferit.3
Summary: An NTP client/server Summary: An NTP client/server
License: GPLv2 License: GPLv2
@ -69,7 +69,7 @@ service to other computers in the network.
# review changes in packaged configuration files and scripts # review changes in packaged configuration files and scripts
md5sum -c <<-EOF | (! grep -v 'OK$') md5sum -c <<-EOF | (! grep -v 'OK$')
222e652b95027289877fa77146d3b9b1 examples/chrony-wait.service 222e652b95027289877fa77146d3b9b1 examples/chrony-wait.service
2ef99491609640c66c4084ffe8d3894f examples/chrony.conf.example2 dc373a30c229f7477e913bee76d03eb7 examples/chrony.conf.example2
96999221eeef476bd49fe97b97503126 examples/chrony.keys.example 96999221eeef476bd49fe97b97503126 examples/chrony.keys.example
6a3178c4670de7de393d9365e2793740 examples/chrony.logrotate 6a3178c4670de7de393d9365e2793740 examples/chrony.logrotate
c3992e2f985550739cd1cd95f98c9548 examples/chrony.nm-dispatcher.dhcp c3992e2f985550739cd1cd95f98c9548 examples/chrony.nm-dispatcher.dhcp
@ -210,6 +210,9 @@ fi
%dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony %dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
%changelog %changelog
* Wed Nov 16 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.3-1.inferit.3
- Use more servers instead of pool
* Wed Aug 30 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 4.3-1.inferit.2 * Wed Aug 30 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 4.3-1.inferit.2
- fixup! Synchronize time via Russian NTP servers - fixup! Synchronize time via Russian NTP servers
- Rebuilt for MSVSphere 9.2 - Rebuilt for MSVSphere 9.2

Loading…
Cancel
Save