commit 4222beb6bada8dccd41f13f31bff77cf20fa4784
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Tue Apr 5 22:24:02 2016 +0200
timedatectl section did not account for NTP config
The commands would not work as described.
The NTP configuration needed to be taken into account.
en-US/Configuring_the_Date_and_Time.xml | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/en-US/Configuring_the_Date_and_Time.xml
b/en-US/Configuring_the_Date_and_Time.xml
index bd13810..343f707 100644
--- a/en-US/Configuring_the_Date_and_Time.xml
+++ b/en-US/Configuring_the_Date_and_Time.xml
@@ -73,6 +73,9 @@ NTP synchronized: no
<para>
This command updates both the system time and the hardware clock. The result it is
similar to using both the <command>date --set</command> and
<command>hwclock --systohc</command> commands.
</para>
+ <para>
+ The command will fail if an <systemitem
class="service">NTP</systemitem> service is enabled. See <xref
linkend="sect-Configuring_the_Date_and_Time-timedatectl-NTP" /> to temporally
disable the service.
+ </para>
<example id="exam-Configuring_the_Date_and_Time-timedatectl-Time">
<title>Changing the Current Time</title>
<para>
@@ -143,14 +146,14 @@ Europe/Bratislava
<section id="sect-Configuring_the_Date_and_Time-timedatectl-NTP">
<title>Synchronizing the System Clock with a Remote Server</title>
<para>
- As opposed to the manual setup described in the previous sections, the
<command>timedatectl</command> command also allows you to enable automatic
synchronization of your system clock with a group of remote servers using <systemitem
class="protocol">NTP</systemitem>. Enabling NTP enables the
<systemitem class="service">chronyd</systemitem> or <systemitem
class="service">ntpd</systemitem> service, depending on which of them
is installed.
+ As opposed to the manual adjustments described in the previous sections, the
<command>timedatectl</command> command also allows you to enable automatic
synchronization of your system clock with a group of remote servers using the
<systemitem class="protocol">NTP</systemitem> protocol. Enabling NTP
enables the <systemitem class="service">chronyd</systemitem> or
<systemitem class="service">ntpd</systemitem> service, depending on
which of them is installed.
</para>
<para>
- To enable or disable NTP, type the following at a shell prompt as <systemitem
class="username">root</systemitem>:
+ The <systemitem class="protocol">NTP</systemitem> service
can be enabled and disabled using a command as follows:
</para>
<synopsis><command>timedatectl</command>
<option>set-ntp</option>
<replaceable>boolean</replaceable></synopsis>
<para>
- To configure your system to synchronize the system clock with a remote
<systemitem class="protocol">NTP</systemitem> server, replace
<replaceable>boolean</replaceable> with <literal>yes</literal>
(the default option). To disable this feature, replace
<replaceable>boolean</replaceable> with <literal>no</literal>.
+ To enable your system to synchronize the system clock with a remote
<systemitem class="protocol">NTP</systemitem> server, replace
<replaceable>boolean</replaceable> with <literal>yes</literal>
(the default option). To disable this feature, replace
<replaceable>boolean</replaceable> with <literal>no</literal>.
</para>
<example id="exam-Configuring_the_Date_and_Time-timedatectl-NTP">
<title>Synchronizing the System Clock with a Remote Server</title>
@@ -158,6 +161,9 @@ Europe/Bratislava
To enable automatic synchronization of the system clock with a remote server,
type:
</para>
<screen>~]# <command>timedatectl set-ntp
yes</command></screen>
+ <para>
+ The command will fail if an <systemitem
class="service">NTP</systemitem> service is not installed. See <xref
linkend="sect-Installing_chrony" /> for more information.
+ </para>
</example>
</section>
</section>
Show replies by date