Hallo,
wie kann ich den timesync-Abgleich durch systemd prüfen? Also offset, Status?
Ich habe mehrfach den Befehl
timedatectl show-timesync --all
gefunden, (z.B. in und ) den es aber in xenial noch nicht gibt. Siehe
# timedatectl status Local time: Mon 2019-11-18 21:03:12 CET Universal time: Mon 2019-11-18 20:03:12 UTC RTC time: Mon 2019-11-18 20:03:12 Time zone: Europe/Berlin (CET, +0100) Network time on: yes NTP synchronized: yes RTC in local TZ: no
# cat /var/lib/systemd/timesync/clock cat: /var/lib/systemd/timesync/clock: No such file or directory
# systemctl status systemd-timesyncd.service ● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/systemd-timesyncd.service.d └─disable-with-time-daemon.conf Active: active (running) since Thu 2019-11-14 23:16:50 CET; 3 days ago Docs: man:systemd-timesyncd.service(8) Main PID: 815 (systemd-timesyn) Status: "Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com)." Tasks: 2 Memory: 680.0K CPU: 302ms CGroup: /system.slice/systemd-timesyncd.service └─815 /lib/systemd/systemd-timesyncd Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
# journalctl -u systemd-timesyncd -- No entries --
# cat /etc/systemd/timesyncd.conf # This file is part of systemd. # # 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. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details. [Time] #NTP= #FallbackNTP=ntp.ubuntu.com
Und warum nimmt er ntp.ubuntu.com, wenn das hier auskommentiert ist?
Gruß und danke vorab
BillMaier