| 1 |
<?xml version="1.0"?> |
| 2 |
<!--*-nxml-*--> |
| 3 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 4 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ |
| 5 |
<!ENTITY % entities SYSTEM "custom-entities.ent" > |
| 6 |
%entities; |
| 7 |
]> |
| 8 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 9 |
|
| 10 |
<refentry id="org.freedesktop.timesync1" conditional='ENABLE_TIMESYNCD' |
| 11 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 12 |
<refentryinfo> |
| 13 |
<title>org.freedesktop.timesync1</title> |
| 14 |
<productname>systemd</productname> |
| 15 |
</refentryinfo> |
| 16 |
|
| 17 |
<refmeta> |
| 18 |
<refentrytitle>org.freedesktop.timesync1</refentrytitle> |
| 19 |
<manvolnum>5</manvolnum> |
| 20 |
</refmeta> |
| 21 |
|
| 22 |
<refnamediv> |
| 23 |
<refname>org.freedesktop.timesync1</refname> |
| 24 |
<refpurpose>The D-Bus interface of systemd-timesyncd</refpurpose> |
| 25 |
</refnamediv> |
| 26 |
|
| 27 |
<refsect1> |
| 28 |
<title>Introduction</title> |
| 29 |
|
| 30 |
<para> |
| 31 |
<citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
| 32 |
is a system service that may be used to synchronize the local system clock with a remote Network Time |
| 33 |
Protocol (NTP) server. This page describes the D-Bus interface.</para> |
| 34 |
</refsect1> |
| 35 |
|
| 36 |
<refsect1> |
| 37 |
<title>The Manager Object</title> |
| 38 |
|
| 39 |
<para>The service exposes the following interfaces on the Manager object on the bus:</para> |
| 40 |
|
| 41 |
<programlisting executable="systemd-timesyncd" node="/org/freedesktop/timesync1" interface="org.freedesktop.timesync1.Manager"> |
| 42 |
node /org/freedesktop/timesync1 { |
| 43 |
interface org.freedesktop.timesync1.Manager { |
| 44 |
methods: |
| 45 |
SetRuntimeNTPServers(in as runtime_servers); |
| 46 |
properties: |
| 47 |
readonly as LinkNTPServers = ['...', ...]; |
| 48 |
readonly as SystemNTPServers = ['...', ...]; |
| 49 |
readonly as RuntimeNTPServers = ['...', ...]; |
| 50 |
readonly as FallbackNTPServers = ['...', ...]; |
| 51 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("false") |
| 52 |
readonly s ServerName = '...'; |
| 53 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("false") |
| 54 |
readonly (iay) ServerAddress = ...; |
| 55 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("const") |
| 56 |
readonly t RootDistanceMaxUSec = ...; |
| 57 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("const") |
| 58 |
readonly t PollIntervalMinUSec = ...; |
| 59 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("const") |
| 60 |
readonly t PollIntervalMaxUSec = ...; |
| 61 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("false") |
| 62 |
readonly t PollIntervalUSec = ...; |
| 63 |
readonly (uuuuittayttttbtt) NTPMessage = ...; |
| 64 |
@org.freedesktop.DBus.Property.EmitsChangedSignal("false") |
| 65 |
readonly x Frequency = ...; |
| 66 |
}; |
| 67 |
interface org.freedesktop.DBus.Peer { ... }; |
| 68 |
interface org.freedesktop.DBus.Introspectable { ... }; |
| 69 |
interface org.freedesktop.DBus.Properties { ... }; |
| 70 |
}; |
| 71 |
</programlisting> |
| 72 |
|
| 73 |
<!--method SetRuntimeNTPServers is not documented!--> |
| 74 |
|
| 75 |
<!--property LinkNTPServers is not documented!--> |
| 76 |
|
| 77 |
<!--property SystemNTPServers is not documented!--> |
| 78 |
|
| 79 |
<!--property RuntimeNTPServers is not documented!--> |
| 80 |
|
| 81 |
<!--property FallbackNTPServers is not documented!--> |
| 82 |
|
| 83 |
<!--property ServerName is not documented!--> |
| 84 |
|
| 85 |
<!--property ServerAddress is not documented!--> |
| 86 |
|
| 87 |
<!--property RootDistanceMaxUSec is not documented!--> |
| 88 |
|
| 89 |
<!--property PollIntervalMinUSec is not documented!--> |
| 90 |
|
| 91 |
<!--property PollIntervalMaxUSec is not documented!--> |
| 92 |
|
| 93 |
<!--property PollIntervalUSec is not documented!--> |
| 94 |
|
| 95 |
<!--property NTPMessage is not documented!--> |
| 96 |
|
| 97 |
<!--property Frequency is not documented!--> |
| 98 |
|
| 99 |
<!--Autogenerated cross-references for systemd.directives, do not edit--> |
| 100 |
|
| 101 |
<variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.timesync1.Manager"/> |
| 102 |
|
| 103 |
<variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.timesync1.Manager"/> |
| 104 |
|
| 105 |
<variablelist class="dbus-method" generated="True" extra-ref="SetRuntimeNTPServers()"/> |
| 106 |
|
| 107 |
<variablelist class="dbus-property" generated="True" extra-ref="LinkNTPServers"/> |
| 108 |
|
| 109 |
<variablelist class="dbus-property" generated="True" extra-ref="SystemNTPServers"/> |
| 110 |
|
| 111 |
<variablelist class="dbus-property" generated="True" extra-ref="RuntimeNTPServers"/> |
| 112 |
|
| 113 |
<variablelist class="dbus-property" generated="True" extra-ref="FallbackNTPServers"/> |
| 114 |
|
| 115 |
<variablelist class="dbus-property" generated="True" extra-ref="ServerName"/> |
| 116 |
|
| 117 |
<variablelist class="dbus-property" generated="True" extra-ref="ServerAddress"/> |
| 118 |
|
| 119 |
<variablelist class="dbus-property" generated="True" extra-ref="RootDistanceMaxUSec"/> |
| 120 |
|
| 121 |
<variablelist class="dbus-property" generated="True" extra-ref="PollIntervalMinUSec"/> |
| 122 |
|
| 123 |
<variablelist class="dbus-property" generated="True" extra-ref="PollIntervalMaxUSec"/> |
| 124 |
|
| 125 |
<variablelist class="dbus-property" generated="True" extra-ref="PollIntervalUSec"/> |
| 126 |
|
| 127 |
<variablelist class="dbus-property" generated="True" extra-ref="NTPMessage"/> |
| 128 |
|
| 129 |
<variablelist class="dbus-property" generated="True" extra-ref="Frequency"/> |
| 130 |
|
| 131 |
<!--End of Autogenerated section--> |
| 132 |
|
| 133 |
<para> |
| 134 |
Provides information about the manager. |
| 135 |
</para> |
| 136 |
|
| 137 |
</refsect1> |
| 138 |
|
| 139 |
<refsect1> |
| 140 |
<title>Examples</title> |
| 141 |
|
| 142 |
<example> |
| 143 |
<title>Introspect <interfacename>org.freedesktop.timesync1.Manager</interfacename> on the bus</title> |
| 144 |
|
| 145 |
<programlisting> |
| 146 |
$ gdbus introspect --system \ |
| 147 |
--dest org.freedesktop.timesync1 \ |
| 148 |
--object-path /org/freedesktop/timesync1 |
| 149 |
</programlisting> |
| 150 |
</example> |
| 151 |
|
| 152 |
</refsect1> |
| 153 |
|
| 154 |
<xi:include href="org.freedesktop.locale1.xml" xpointer="versioning"/> |
| 155 |
|
| 156 |
<refsect1> |
| 157 |
<title>See Also</title> |
| 158 |
<para><simplelist type="inline"> |
| 159 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 160 |
<member><citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 161 |
</simplelist></para> |
| 162 |
</refsect1> |
| 163 |
</refentry> |