[systemd-commits] 3 commits - make-directive-index.py man/timedatectl.xml src/timedate
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Wed Nov 14 14:25:52 PST 2012
make-directive-index.py | 20 +++++++++++++++++++-
man/timedatectl.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
src/timedate/timedatectl.c | 3 ++-
3 files changed, 65 insertions(+), 2 deletions(-)
New commits:
commit be1015dd347edd9d72eebb444c88dddf92383c18
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 2 10:55:59 2012 +0100
man: throw in an example of timedatectl output
timedatectl is too cool not to advertise it a bit.
diff --git a/man/timedatectl.xml b/man/timedatectl.xml
index 83ae1f6..01ca0a7 100644
--- a/man/timedatectl.xml
+++ b/man/timedatectl.xml
@@ -235,6 +235,50 @@
</refsect1>
<refsect1>
+ <title>Examples</title>
+ <para>Show current settings:
+ <programlisting>
+$ 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
+ </programlisting>
+ </para>
+
+ <para>Enable an NTP daemon (chronyd):
+ <programlisting>
+$ timedatectl set-ntp true
+==== AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp ===
+Authentication is required to control whether network time synchronization shall be enabled.
+Authenticating as: user
+Password: ********
+==== AUTHENTICATION COMPLETE ===
+ </programlisting>
+
+ <programlisting>
+$ 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
+...
+ </programlisting>
+ </para>
+ </refsect1>
+
+ <refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
commit fea05a40ff972aded7006c8ab647b5d81e44ca4b
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 14 16:38:34 2012 +0100
timedatectl: break line to not exceed 80 columns
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index caa5bc7..c96377f 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -187,7 +187,8 @@ static void print_status_info(StatusInfo *i) {
zero(tm);
assert_se(strftime(b, sizeof(b), "%a, %Y-%m-%d %H:%M:%S %Z", localtime_r(&tn, &tm)) > 0);
char_array_0(b);
- printf(" Next DST change: %s â %s, DST will become %s, the clock will jump %s\n"
+ printf(" Next DST change: %s â %s, DST will become %s\n"
+ " the clock will jump %s\n"
" %s\n"
" %s\n",
strna(zc), strna(zn), is_dstn ? "active" : "inactive", jump_str(dn, s, sizeof(s)), a, b);
commit e7098b699a025ea852a5e21b0e9122116f3f26bd
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Nov 13 18:39:18 2012 +0100
lawyerese: add header to make-directive-index
diff --git a/make-directive-index.py b/make-directive-index.py
old mode 100644
new mode 100755
index af2d948..eaf7019
--- a/make-directive-index.py
+++ b/make-directive-index.py
@@ -1,4 +1,22 @@
-# -*- coding: utf-8 -*-
+# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+#
+# This file is part of systemd.
+#
+# Copyright 2012 Zbigniew JÄdrzejewski-Szmek
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# systemd is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with systemd; If not, see <http://www.gnu.org/licenses/>.
+
import sys
import collections
import xml.etree.ElementTree as tree
More information about the systemd-commits
mailing list