diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-10 21:42:50 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-10 21:42:50 +0200 |
commit | fd0958762ab01448c3215091645499145989813c (patch) | |
tree | 04add713147d90f3f92f25316cd8e754c2851d45 | |
parent | timesync: add support of basic command line options (diff) | |
download | systemd-fd0958762ab01448c3215091645499145989813c.tar.xz systemd-fd0958762ab01448c3215091645499145989813c.zip |
man: add basic documents for org.freedesktop.timesync1
Closes #34352.
-rw-r--r-- | man/org.freedesktop.timesync1.xml | 156 | ||||
-rw-r--r-- | man/rules/meson.build | 1 | ||||
-rw-r--r-- | tools/dbus_ignorelist | 13 |
3 files changed, 170 insertions, 0 deletions
diff --git a/man/org.freedesktop.timesync1.xml b/man/org.freedesktop.timesync1.xml new file mode 100644 index 0000000000..22bf73103d --- /dev/null +++ b/man/org.freedesktop.timesync1.xml @@ -0,0 +1,156 @@ +<?xml version="1.0"?> +<!--*-nxml-*--> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % entities SYSTEM "custom-entities.ent" > +%entities; +]> +<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> + +<refentry id="org.freedesktop.timesync1" conditional='ENABLE_TIMESYNCD' + xmlns:xi="http://www.w3.org/2001/XInclude"> + <refentryinfo> + <title>org.freedesktop.timesync1</title> + <productname>systemd</productname> + </refentryinfo> + + <refmeta> + <refentrytitle>org.freedesktop.timesync1</refentrytitle> + <manvolnum>5</manvolnum> + </refmeta> + + <refnamediv> + <refname>org.freedesktop.timesync1</refname> + <refpurpose>The D-Bus interface of systemd-timesyncd</refpurpose> + </refnamediv> + + <refsect1> + <title>Introduction</title> + + <para> + <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> + is a system service that may be used to synchronize the local system clock with a remote Network Time + Protocol (NTP) server. This page describes the D-Bus interface.</para> + </refsect1> + + <refsect1> + <title>The Manager Object</title> + + <para>The service exposes the following interfaces on the Manager object on the bus:</para> + + <programlisting executable="systemd-timesyncd" node="/org/freedesktop/timesync1" interface="org.freedesktop.timesync1.Manager"> +node /org/freedesktop/timesync1 { + interface org.freedesktop.timesync1.Manager { + methods: + SetRuntimeNTPServers(in as runtime_servers); + properties: + readonly as LinkNTPServers = ['...', ...]; + readonly as SystemNTPServers = ['...', ...]; + readonly as RuntimeNTPServers = ['...', ...]; + readonly as FallbackNTPServers = ['...', ...]; + @org.freedesktop.DBus.Property.EmitsChangedSignal("false") + readonly s ServerName = '...'; + @org.freedesktop.DBus.Property.EmitsChangedSignal("false") + readonly (iay) ServerAddress = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("const") + readonly t RootDistanceMaxUSec = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("const") + readonly t PollIntervalMinUSec = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("const") + readonly t PollIntervalMaxUSec = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("false") + readonly t PollIntervalUSec = ...; + readonly (uuuuittayttttbtt) NTPMessage = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("false") + readonly x Frequency = ...; + }; + interface org.freedesktop.DBus.Peer { ... }; + interface org.freedesktop.DBus.Introspectable { ... }; + interface org.freedesktop.DBus.Properties { ... }; +}; + </programlisting> + + <!--method SetRuntimeNTPServers is not documented!--> + + <!--property LinkNTPServers is not documented!--> + + <!--property SystemNTPServers is not documented!--> + + <!--property RuntimeNTPServers is not documented!--> + + <!--property FallbackNTPServers is not documented!--> + + <!--property ServerName is not documented!--> + + <!--property ServerAddress is not documented!--> + + <!--property RootDistanceMaxUSec is not documented!--> + + <!--property PollIntervalMinUSec is not documented!--> + + <!--property PollIntervalMaxUSec is not documented!--> + + <!--property PollIntervalUSec is not documented!--> + + <!--property NTPMessage is not documented!--> + + <!--property Frequency is not documented!--> + + <!--Autogenerated cross-references for systemd.directives, do not edit--> + + <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.timesync1.Manager"/> + + <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.timesync1.Manager"/> + + <variablelist class="dbus-method" generated="True" extra-ref="SetRuntimeNTPServers()"/> + + <variablelist class="dbus-property" generated="True" extra-ref="LinkNTPServers"/> + + <variablelist class="dbus-property" generated="True" extra-ref="SystemNTPServers"/> + + <variablelist class="dbus-property" generated="True" extra-ref="RuntimeNTPServers"/> + + <variablelist class="dbus-property" generated="True" extra-ref="FallbackNTPServers"/> + + <variablelist class="dbus-property" generated="True" extra-ref="ServerName"/> + + <variablelist class="dbus-property" generated="True" extra-ref="ServerAddress"/> + + <variablelist class="dbus-property" generated="True" extra-ref="RootDistanceMaxUSec"/> + + <variablelist class="dbus-property" generated="True" extra-ref="PollIntervalMinUSec"/> + + <variablelist class="dbus-property" generated="True" extra-ref="PollIntervalMaxUSec"/> + + <variablelist class="dbus-property" generated="True" extra-ref="PollIntervalUSec"/> + + <variablelist class="dbus-property" generated="True" extra-ref="NTPMessage"/> + + <variablelist class="dbus-property" generated="True" extra-ref="Frequency"/> + + <!--End of Autogenerated section--> + + <para> + Provides information about the manager. + </para> + + </refsect1> + + <refsect1> + <title>Examples</title> + + <example> + <title>Introspect <interfacename>org.freedesktop.timesync1.Manager</interfacename> on the bus</title> + + <programlisting> +$ gdbus introspect --system \ + --dest org.freedesktop.timesync1 \ + --object-path /org/freedesktop/timesync1 + </programlisting> + </example> + + </refsect1> + + <xi:include href="org.freedesktop.locale1.xml" xpointer="versioning"/> + +</refentry> diff --git a/man/rules/meson.build b/man/rules/meson.build index ad617aa4d5..080aa44b3d 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -67,6 +67,7 @@ manpages = [ ['org.freedesktop.systemd1', '5', [], ''], ['org.freedesktop.sysupdate1', '5', [], 'ENABLE_SYSUPDATE'], ['org.freedesktop.timedate1', '5', [], 'ENABLE_TIMEDATED'], + ['org.freedesktop.timesync1', '5', [], 'ENABLE_TIMESYNCD'], ['os-release', '5', ['extension-release', 'initrd-release'], ''], ['pam_systemd', '8', [], 'HAVE_PAM'], ['pam_systemd_home', '8', [], 'ENABLE_PAM_HOME'], diff --git a/tools/dbus_ignorelist b/tools/dbus_ignorelist index 71bdad8b57..0fc572d204 100644 --- a/tools/dbus_ignorelist +++ b/tools/dbus_ignorelist @@ -2172,3 +2172,16 @@ org.freedesktop.timedate1.SetTime() org.freedesktop.timedate1.SetTimezone() org.freedesktop.timedate1.TimeUSec org.freedesktop.timedate1.Timezone +org.freedesktop.timesync1.Manager.SetRuntimeNTPServers() +org.freedesktop.timesync1.Manager.LinkNTPServers +org.freedesktop.timesync1.Manager.SystemNTPServers +org.freedesktop.timesync1.Manager.RuntimeNTPServers +org.freedesktop.timesync1.Manager.FallbackNTPServers +org.freedesktop.timesync1.Manager.ServerName +org.freedesktop.timesync1.Manager.ServerAddress +org.freedesktop.timesync1.Manager.RootDistanceMaxUSec +org.freedesktop.timesync1.Manager.PollIntervalMinUSec +org.freedesktop.timesync1.Manager.PollIntervalMaxUSec +org.freedesktop.timesync1.Manager.PollIntervalUSec +org.freedesktop.timesync1.Manager.NTPMessage +org.freedesktop.timesync1.Manager.Frequency |