Time services: Difference between revisions
From DWIKI
mNo edit summary |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
==systemd== | ==systemd== | ||
systemctl status systemd-timesyncd | |||
===timedatectl=== | |||
timedatectl status | |||
====Failed to set up connection socket: Address family not supported by protocol==== | |||
man timesyncd.conf | |||
===FAQ=== | |||
====Address family not supported by protocol==== | |||
Try setting IPv4 address in /etc/systemd/timesyncd.conf: | |||
NTP=91.189.91.157 185.125.190.57 91.189.91.157 | |||
and then | |||
systemctl restart systemd-timesyncd.service | |||
===chrony=== | ===chrony=== | ||
=== timesyncd === | === timesyncd === | ||
[https://www.freedesktop.org/software/systemd/man/systemd-timesyncd.service.html documentation] | [https://www.freedesktop.org/software/systemd/man/systemd-timesyncd.service.html documentation] | ||
=FAQ= | |||
==ntpdate: no servers can be used== | |||
you need to pass a server | |||
==Force IPv4 only== | |||
In ntpd.service | |||
ExecStart=/usr/bin/ntpd -4 -g -u ntp:ntp | |||
Or remove the 2.* lines from /etc/systemd/timesyncd.conf |
Latest revision as of 13:23, 9 October 2024
Links
Linux implementations
ntpd
ntpdate
systemd
systemctl status systemd-timesyncd
timedatectl
timedatectl status
Failed to set up connection socket: Address family not supported by protocol
man timesyncd.conf
FAQ
Address family not supported by protocol
Try setting IPv4 address in /etc/systemd/timesyncd.conf:
NTP=91.189.91.157 185.125.190.57 91.189.91.157
and then
systemctl restart systemd-timesyncd.service
chrony
timesyncd
FAQ
ntpdate: no servers can be used
you need to pass a server
Force IPv4 only
In ntpd.service
ExecStart=/usr/bin/ntpd -4 -g -u ntp:ntp
Or remove the 2.* lines from /etc/systemd/timesyncd.conf