Bug 837486 - ntpdate.service needs After=nss-lookup.target
Summary: ntpdate.service needs After=nss-lookup.target
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ntp
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-04 05:24 UTC by Jordan Russell
Modified: 2012-08-07 20:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:09:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jordan Russell 2012-07-04 05:24:18 UTC
Description of problem:
Currently, ntpdate.service is started before named.service during boot. When named is set up as the local DNS resolver, this causes ntpdate's first attempt to always fail with "can't find server" errors logged.

To ensure that named starts first, ntpdate.service needs:
After=nss-lookup.target

I suspect ntpd.service should include the same change (and it's missing After=network.target, too).

Version-Release number of selected component (if applicable):
ntp-4.2.6p4-1.fc16

Comment 1 Miroslav Lichvar 2012-08-07 20:09:00 UTC
Should be fixed in ntp-4.2.6p5-5.fc18. Thanks.

The ntpd service doesn't always need network or DNS (e.g. with a reference clock) and it's better to start it early so the clock frequency offset is set from the drift file.


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