きっかけ
今まで ntpdate を使っていたが、deprecate になっていた。
sntp を使うようにとあったが、systemdで提供があった。
設定
- /etc/systemd/timesyncd.conf
/etc/systemd/timesyncd.conf
[Time]
NTP=ntp.nict.jp
FallbackNTP=ntp1.jst.mfeed.ad.jp ntp2.jst.mfeed.ad.jp ntp3.jst.mfeed.ad.jp
サービスのリスタート
systemctl restart systemd-timesyncd
systemctl status systemd-timesyncd