Red Hat Bugzilla – Bug 827466
chronyd service shows wrong startup status
Last modified: 2014-01-28 16:08:22 EST
Created attachment 588482 [details]
Description of problem:
When starting with a good configuration, chronyd shows a failure notice:
Adding dhclient NTP servers to chrony: [FAILED]
Whereas both my ntp server in /etc/chrony.conf and in my dhcp lease, service startup is OK:
Adding dhclient NTP servers to chrony: [ OK ]
Version-Release number of selected component (if applicable):
Name : chrony
Arch : x86_64
Version : 1.25
Release : 2.el6
Steps to Reproduce:
1. service chronyd start
The bug is in /etc/init.d/chronyd, line 51
the chrony_command function returns true when grep match an error, and false when there's no error.
My patch is to remove this grep.
I've changed the chronyc wrapper to return with the chronyc exit code instead of grep. Thanks for the report.
chrony-1.25-4.el6 has been submitted as an update for Fedora EPEL 6.
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing chrony-1.25-4.el6'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
chrony-1.25-4.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.