1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-06 23:41:31 +02:00

services: ntp: Allow large adjustment by default.

This is documented as best practice in `man ntpd', and is required to allow
the date to be set correctly when traveling (without having to manually update
the hardware clock in the BIOS/UEFI).

* gnu/services/networking.scm (<ntp-server>)[allow-large-adjustment?]: Set the
default value to #t.
* doc/guix.texi (Networking Services): Update documentation.
This commit is contained in:
Maxim Cournoyer
2019-09-03 00:42:24 +09:00
parent 861b9a365b
commit 08b4a10fa6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13050,7 +13050,7 @@ This is the data type for the NTP service configuration.
This is the list of servers (host names) with which @command{ntpd} will be
synchronized.
@item @code{allow-large-adjustment?} (default: @code{#f})
@item @code{allow-large-adjustment?} (default: @code{#t})
This determines whether @command{ntpd} is allowed to make an initial
adjustment of more than 1,000 seconds.
+1 -1
View File
@@ -315,7 +315,7 @@ Protocol (DHCP) client, on all the non-loopback network interfaces."
(servers ntp-configuration-servers
(default %ntp-servers))
(allow-large-adjustment? ntp-allow-large-adjustment?
(default #f)))
(default #t))) ;as recommended in the ntpd manual
(define ntp-shepherd-service
(match-lambda