Closed juergenhoetzel closed 6 years ago
checkEnabled
should check whether synchronisation is 'enabled', but shouldn't verify whether the clock is considered 'synced'. This is important because syncing the clock may take a while and the user shouldn't be warned about enabling time sync when it's already on.
Maybe the string we need to check for is "systemd-timesyncd.service active"?
I hate that timedatectl output changes every two months. Would be nice to find a more future-proof way to check this.
I've added the check for "systemd-timesyncd.service active" in c4c1fab.
The output format of
timedatectl status
changed again.See: https://github.com/systemd/systemd/commit/3ec530a1890925efe347f739917dd4078c1b1942
Output on my Arch Linux setup:
This is also the cause, why mist complains
Deine Computeruhr ist nicht synchronisiert!
on startup even tough I use thesystemd
ntp client.