From: Yu Watanabe Date: Tue, 17 Apr 2018 04:57:27 +0000 (+0900) Subject: man: update timedatectl and systemd-timedated X-Git-Tag: v239~384^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=326208e08292203b625c8ba414b53ffc3eb5853b;p=platform%2Fupstream%2Fsystemd.git man: update timedatectl and systemd-timedated --- diff --git a/man/systemd-timedated.service.xml b/man/systemd-timedated.service.xml index c8d74dd..9a37d89 100644 --- a/man/systemd-timedated.service.xml +++ b/man/systemd-timedated.service.xml @@ -62,12 +62,33 @@ + Environment + + + + $SYSTEMD_TIMEDATED_NTP_SERVICES + + Colon-separated list of unit names of NTP client services. + If not set, then + systemd-timesyncd.service8 + is used. See the entries of NTP related commands of + timedatectl1 + for details about this. + + Example: + SYSTEMD_TIMEDATED_NTP_SERVICES=ntpd.service:chronyd.service:systemd-timesyncd.service + + + + + See Also systemd1, timedatectl1, localtime5, - hwclock8 + hwclock8, + systemd-timesyncd8 diff --git a/man/timedatectl.xml b/man/timedatectl.xml index e8d9cb8..02b86b6 100644 --- a/man/timedatectl.xml +++ b/man/timedatectl.xml @@ -156,28 +156,11 @@ set-ntp [BOOL] - Takes a boolean argument. Controls whether - 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. + Takes a boolean argument. Controls whether network time synchronization is active + and enabled (if available). If the argument is true, this enables and starts the first existed + service listed in the environment variable $SYSTEMD_TIMEDATED_NTP_SERVICES + of systemd-timedated.service. If the argument is false, then this disables and + stops the all services listed in $SYSTEMD_TIMEDATED_NTP_SERVICES. @@ -197,13 +180,13 @@ Examples Show current settings: $ timedatectl - Local time: Thu 2017-09-21 16:08:56 CEST - Universal time: Thu 2017-09-21 14:08:56 UTC - RTC time: Thu 2017-09-21 14:08:56 - Time zone: Europe/Warsaw (CEST, +0200) - System clock synchronized: yes -systemd-timesyncd.service active: yes - RTC in local TZ: no + Local time: Thu 2017-09-21 16:08:56 CEST + Universal time: Thu 2017-09-21 14:08:56 UTC + RTC time: Thu 2017-09-21 14:08:56 + Time zone: Europe/Warsaw (CEST, +0200) +System clock synchronized: yes + NTP service: active + RTC in local TZ: no Enable network time synchronization: