Rename chrony.list in /usr/lib/systemd/ntp-units.d/ to 50-chronyd.list
Task Info (Flyspray) | |
---|---|
Opened By | Indrajit Raychaudhuri (indrajitr) |
Task ID | 70291 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2021-04-05 02:32:21 UTC |
Status | Assigned |
Assignee | Levente Polyak (anthraxx) |
Details
Description:
As part of FS#67779, a new file /usr/lib/systemd/ntp-units.d/chrony.list was added so that systemd-timedated can recognize chrony.service.
However, for this to be honored by 'timedatectl set-ntp true', crony.list should appear before 80-systemd-timesync.list in the lexical order [1]. We can probably settle for 50-chronyd.list.
FWIW, RedHat variants use 50-chronyd.list, Debian variants use 50-chrony.list.
[1] https://www.freedesktop.org/software/systemd/man/timedatectl.html#set-ntp%20%5BBOOL%5D
Additional info:
- package version(s): chrony 4.0-1
Steps to reproduce:
Start chronyd
$ sudo systemctl start chronyd.service
Check if chronyd is active as expected
$ systemctl is-active chronyd.service active
Check if systemd-timesyncd is inactive as expected
$ systemctl is-active systemd-timesyncd.service
inactive
Set NTP server in timedatectl
$ sudo timedatectl set-ntp true
Notice that chronyd went to inactive state
$ systemctl is-active chronyd.service inactive
Also, notice that systemd-timesyncd went to active state
$ systemctl is-active systemd-timesyncd.service active