man-pages/man8/systemd-timesyncd.service.8.html
2021-03-31 01:06:50 +01:00

125 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SYSTEMD-TIMESYNCD.SERVICE</TITLE>
</HEAD><BODY>
<H1>SYSTEMD-TIMESYNCD.SERVICE</H1>
Section: systemd-timesyncd.service (8)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
systemd-timesyncd.service, systemd-timesyncd - Network Time Synchronization
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
systemd-timesyncd.service
<P>
/lib/systemd/systemd-timesyncd
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
systemd-timesyncd
is a system service that may be used to synchronize the local system clock with a remote Network Time Protocol server. It also saves the local time to disk every time the clock has been synchronized and uses this to possibly advance the system realtime clock on subsequent reboots to ensure it monotonically advances even if the system lacks a battery-buffered RTC chip.
<P>
The
systemd-timesyncd
service specifically implements only SNTP. This minimalistic service will set the system clock for large offsets or slowly adjust it for smaller deltas. More complex use cases are not covered by
systemd-timesyncd.
<P>
The NTP servers contacted are determined from the global settings in
<B><A HREF="/cgi-bin/man/man2html?5+timesyncd.conf">timesyncd.conf</A></B>(5), the per-link static settings in
.network
files, and the per-link dynamic settings received over DHCP. See
<B><A HREF="/cgi-bin/man/man2html?5+systemd.network">systemd.network</A></B>(5)
for more details.
<P>
<B><A HREF="/cgi-bin/man/man2html?1+timedatectl">timedatectl</A></B>(1)'s
<B>set-ntp</B>
command may be used to enable and start, or disable and stop this service.
<P>
<B><A HREF="/cgi-bin/man/man2html?1+timedatectl">timedatectl</A></B>(1)'s
<B>timesync-status</B>
or
<B>show-timesync</B>
command can be used to show the current status of this service.
<A NAME="lbAE">&nbsp;</A>
<H2>FILES</H2>
<P>
/var/lib/systemd/timesync/clock
<DL COMPACT><DT id="1"><DD>
The modification time of this file indicates the timestamp of the last successful synchronization (or at least the systemd build date, in case synchronization was not possible).
</DL>
<P>
/run/systemd/timesync/synchronized
<DL COMPACT><DT id="2"><DD>
A file that is touched on each successful synchronization, to assist
systemd-time-wait-sync
and other applications to detecting synchronization events.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?5+timesyncd.conf">timesyncd.conf</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?5+systemd.network">systemd.network</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?8+systemd-networkd.service">systemd-networkd.service</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+systemd-time-wait-sync.service">systemd-time-wait-sync.service</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?1+timedatectl">timedatectl</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?5+localtime">localtime</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?8+hwclock">hwclock</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="6"><A HREF="#lbAE">FILES</A><DD>
<DT id="7"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:17 GMT, March 31, 2021
</BODY>
</HTML>