From 8731be1a529272e8010505627316161adb476842 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 Aug 2015 18:26:03 +0200 Subject: man: extend documentation for timedatectl's set-ntp command This extends on the relationship between timedatectl's set-ntp command and its effect on the systemd-timesyncd.service unit. This also links that unit back to the timedatectl man page. Closes #798. --- man/systemd-timesyncd.service.xml | 4 ++++ man/timedatectl.xml | 27 +++++++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) (limited to 'man') diff --git a/man/systemd-timesyncd.service.xml b/man/systemd-timesyncd.service.xml index ac1af2d136..01ed0b8149 100644 --- a/man/systemd-timesyncd.service.xml +++ b/man/systemd-timesyncd.service.xml @@ -71,6 +71,10 @@ files, and the per-link dynamic settings received over DHCP. See systemd.network5 for more details. + + timedatectl1's + set-ntp command may be used to enable and + start, or disable and stop this service. diff --git a/man/timedatectl.xml b/man/timedatectl.xml index 2d42b41d5e..9a86c4126a 100644 --- a/man/timedatectl.xml +++ b/man/timedatectl.xml @@ -166,12 +166,27 @@ set-ntp [BOOL] Takes a boolean argument. Controls whether - network time synchronization is enabled (if available). This - enables or disables the - systemd-timesyncd.service unit. Note that - even if this command turns time synchronization off a - different system service might still synchronize the clock - with the network. + network time synchronization is active and enabled (if + available). This enables and starts, or disables and stops the + systemd-timesyncd.service unit. It does + not affect the state of any other, unrelated network time + synchronization services that might be installed on the + system. This command is hence mostly equivalent to: + systemctl enable --now + systemd-timesyncd.service and systemctl + disable --now systemd-timesyncd.service, but is + protected by a different access policy. + + Note that even if time synchronization is turned off + with this command another, unrelated system service might + still synchronize the clock with the network. Also note that + strictly speaking + systemd-timesyncd.service does more than + just network time synchronization as it ensures a monotonic + clock on systems without RTC even if no network is + available. See + systemd-timesyncd.service8 + for details about this. -- cgit v1.2.3-54-g00ecf