Default Debian Date/Time Settings: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
systemctl restart systemd-timesyncd | systemctl restart systemd-timesyncd | ||
</pre> | </pre> | ||
= Logs = | |||
<pre>journalctl -efu systemd-timesyncd</pre> | |||
*-e end | |||
*-f live | |||
*-u service name | |||
= Default file = | = Default file = | ||
Line 39: | Line 46: | ||
</pre> | </pre> | ||
[[Category : Raspbian]] | [[Category : Debian]] [[Category : Raspbian]] |
Latest revision as of 00:45, 6 May 2025
To change the default NTP server used for Date/Time queries.
Config File
vi /etc/systemd/timesyncd.conf
NTP=au.pool.ntp.org
Restart Services
systemctl daemon-reload systemctl restart systemd-timesyncd
Logs
journalctl -efu systemd-timesyncd
- -e end
- -f live
- -u service name
Default file
# 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=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org #RootDistanceMaxSec=5 #PollIntervalMinSec=32 #PollIntervalMaxSec=2048