TL;DR
-
Stop
systemd-timesyncd
sudo systemctl stop systemd-timesyncd
-
Disable
systemd-timesyncd
sudo systemctl disable systemd-timesyncd
Done!
Introduction.
Today, so many things depend on accurate time-keeping. Thus we don't need to disable time sync usually, but sometimes -- workaround to annoying GPSD bugs and so on -- we need to disable it.
In the past, it was common to use ntpd
for time sync. Since systemd-216, the systemd-timesyncd
is often used.
This article provides you "how to check systemd-timesyncd
is being used", "how to disable systemd-timesyncd
" and "how to re-enable systemd-timesyncd
".
How to check systemd-timesyncd
is being used.
Run following command in a terminal.
systemctl status systemd-timesyncd
If systemd-timesyncd
is being used for time synchronization, you can see "Active: active (running)" in the result like following screenshot.
On the other hand, systemd-timesyncd
is not used, you can see "Active: inactive (dead)" in the result like following screenshot.
How to disable systemd-timesyncd
.
At the first, you need to stop the service. To do this, run following command in a terminal.
sudo systemctl stop systemd-timesyncd
Then disable systemd-timesyncd, run following command in a terminal.
sudo systemctl disable systemd-timesyncd
How to re-enable systemd-timesyncd.
First, set 'enable' for systemd-timesyncd. To do this, run:
sudo systemctl enable systemd-timesyncd
Then start the service of systemd-timesyncd. To do this, run:
sudo systemctl start systemd-timesyncd
Finally, let's see systemd-timesyncd is really enabled. Run:
systemctl status systemd-timesyncd
done!
Top comments (0)