Force ntp update with systemd

Old way most of us are used to is not working with underlying operating systems that use systemd. After trying a lot of things with ntpd and ntpdate I found out that correct way to force sync the clock is:

timedatectl set-ntp true

2 Replies to “Force ntp update with systemd”

  1. This is actually not true (or perhaps no longer true). I believe the correct way to force sync the clock on a systemd-based system is:

    # systemctl restart systemd-timesyncd

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.