GNOME Bugzilla – Bug 655119
datetime: Add support for chrony on Fedora
Last modified: 2011-09-06 12:55:15 UTC
Created attachment 192454 [details] [review] Original patch by Miroslav Lichvar This patch adds support for chrony, the default NTP client in Fedora 16. Just a simple test for available service. Fedora feature page: http://fedoraproject.org/wiki/Features/ChronyDefaultNTP Original Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=723212
Created attachment 192455 [details] [review] Minor whitespace fixes
-- bug 654970 looks to be somewhat related, good idea of sharing some code.
I think it is fine to keep accepting distro-specific patches until the systemd service is ready to replace this.
Review of attachment 192455 [details] [review]: ::: plugins/datetime/gsd-datetime-mechanism-fedora.c @@ +39,3 @@ + return "ntp"; + return NULL; +} Just a drive-by comment: why don't you just return "chronyd" and "ntpd" here instead of appending "d" to the returned string manually later every time?
Comment on attachment 192455 [details] [review] Minor whitespace fixes As per Cosimo's comment (really not making this any more readable otherwise).
The systemd service has ntp support now, so switching over to that would be another option.
(In reply to comment #6) > The systemd service has ntp support now, so switching over to that would be > another option. Working on this.
(In reply to comment #7) > (In reply to comment #6) > > The systemd service has ntp support now, so switching over to that would be > > another option. > > Working on this. Note that if you want to have support for chrony, it should happen with a corrected version of the patch. When the systemd ntp service support is merged, I will remove the support for other systems altogether so that's one for 3.4.
Fixed in master for GNOME 3.2. We'll be removing that code in GNOME 3.4, see bug 658352. commit bcf00c394e71bde04698e51a6930cb8d2940aadf Author: Tomas Bzatek <tbzatek@redhat.com> Date: Tue Sep 6 13:41:15 2011 +0100 datetime: Allow chrony to be used on Fedora This patch adds support for chrony, the default NTP client in Fedora 16. Fedora feature page: http://fedoraproject.org/wiki/Features/ChronyDefaultNTP Original Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=723212 https://bugzilla.gnome.org/show_bug.cgi?id=655119