FS#70291 - [chrony] Rename chrony.list in /usr/lib/systemd/ntp-units.d/ to 50-chronyd.list

Attached to Project: Community Packages
Opened by Indrajit Raychaudhuri (indrajitr) - Monday, 05 April 2021, 02:32 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/chrony/issues/1
Comment by Indrajit Raychaudhuri (indrajitr) - Sunday, 19 December 2021, 17:34 GMT
Wondering if any additional info might be necessary to make this happen.
Now that chrony 4.2 is released, this might be an opportunity to adjust the PKGBUILD along with the version update.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Christian Heusel (gromit) - Friday, 29 September 2023, 19:48 GMT

Loading...