Bug 827466 - chronyd service shows wrong startup status
Summary: chronyd service shows wrong startup status
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: chrony
Version: el6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-01 14:34 UTC by Ludwin Janvier
Modified: 2014-01-28 21:08 UTC (History)
1 user (show)

Fixed In Version: chrony-1.25-4.el6
Clone Of:
Environment:
Last Closed: 2014-01-28 21:08:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch (80 bytes, text/plain)
2012-06-01 14:34 UTC, Ludwin Janvier
no flags Details

Description Ludwin Janvier 2012-06-01 14:34:20 UTC
Created attachment 588482 [details]
patch

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

How reproducible:
Always

Steps to Reproduce:
1. service chronyd start
2.
3.
  
Actual results:
FAILED

Expected results:
OK

Additional info:
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.

Comment 1 Miroslav Lichvar 2014-01-10 16:17:48 UTC
I've changed the chronyc wrapper to return with the chronyc exit code instead of grep. Thanks for the report.

Comment 2 Fedora Update System 2014-01-10 16:24:30 UTC
chrony-1.25-4.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/chrony-1.25-4.el6

Comment 3 Fedora Update System 2014-01-10 23:41:42 UTC
Package chrony-1.25-4.el6:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-0119/chrony-1.25-4.el6
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-28 21:08:22 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.