From 57506e7d185bff2a9b26ff8c45fd8ccb3037507f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 7 Apr 2015 16:29:21 +0200 Subject: man: update timedatectl(1)'s examples The output didn't match what we output these days. Also, "set-ntp" cannot be used to control chronyd anymore. --- man/timedatectl.xml | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'man') diff --git a/man/timedatectl.xml b/man/timedatectl.xml index 5baa323143..e5d0ef4171 100644 --- a/man/timedatectl.xml +++ b/man/timedatectl.xml @@ -106,7 +106,8 @@ Show current settings of the system clock and RTC, including whether NTP is enabled. Note that the NTP state simply reflects whether the - systemd-timesyncd.service unit is enabled. + systemd-timesyncd.service unit is + enabled. @@ -185,25 +186,16 @@ Examples Show current settings: $ timedatectl - Local time: Fri, 2012-11-02 09:26:46 CET - Universal time: Fri, 2012-11-02 08:26:46 UTC - RTC time: Fri, 2012-11-02 08:26:45 - Timezone: Europe/Warsaw - UTC offset: +0100 - NTP enabled: no -NTP synchronized: no - RTC in local TZ: no - DST active: no - Last DST change: CEST → CET, DST became inactive - Sun, 2012-10-28 02:59:59 CEST - Sun, 2012-10-28 02:00:00 CET - Next DST change: CET → CEST, DST will become active - the clock will jump one hour forward - Sun, 2013-03-31 01:59:59 CET - Sun, 2013-03-31 03:00:00 CEST + Local time: Di 2015-04-07 16:26:56 CEST + Universal time: Di 2015-04-07 14:26:56 UTC + RTC time: Di 2015-04-07 14:26:56 + Time zone: Europe/Berlin (CEST, +0200) + NTP enabled: yes +NTP synchronized: yes + RTC in local TZ: no - Enable an NTP daemon (chronyd): + Enable an NTP daemon: $ timedatectl set-ntp true ==== AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp === Authentication is required to control whether network time synchronization shall be enabled. @@ -211,10 +203,15 @@ Authenticating as: user Password: ******** ==== AUTHENTICATION COMPLETE === - $ systemctl status chronyd.service -chronyd.service - NTP client/server - Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled) - Active: active (running) since Fri, 2012-11-02 09:36:25 CET; 5s ago + $ systemctl status systemd-timesyncd.service +● systemd-timesyncd.service - Network Time Synchronization + Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled) + Active: active (running) since Mo 2015-03-30 14:20:38 CEST; 5s ago + Docs: man:systemd-timesyncd.service(8) + Main PID: 595 (systemd-timesyn) + Status: "Using Time Server 216.239.38.15:123 (time4.google.com)." + CGroup: /system.slice/systemd-timesyncd.service + └─595 /usr/lib/systemd/systemd-timesyncd ... -- cgit v1.2.3-54-g00ecf