Bug 783629

Summary: httpd starts before named
Product: [Fedora] Fedora Reporter: Frank Crawford <frank>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: frank, jkaluza, jorton, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: httpd-2.2.22-2.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-01 22:56:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Frank Crawford 2012-01-21 07:43:05 UTC
Description of problem:
httpd start before named and fails if there are any DNS entries requiring resolution.

Version-Release number of selected component (if applicable):
httpd-2.2.21-1.fc16.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Boot the system
2. View /var/log/boot.log
3.
  
Actual results:
httpd starts before named and fails due to unresolved hostnames.

Expected results:
named starts first and all hostnames are resolved.

Additional info:
The SysV/LSB file includes a dependency on named, but systemd entry does not.

Comment 1 Jan Kaluža 2012-01-23 09:22:09 UTC
I'm not sure if it's possible to fix it currently, because bind doesn't have systemd unit file yet (see Bug 719419). I will try to find out if it's possible to start named (which still uses LSB init script) before httpd which uses systemd.

Comment 2 Frank Crawford 2012-01-23 10:33:34 UTC
Are you sure that you can't refer to SysV init scripts as well?  the systemd.service(5) man page says that if a service is requested it will dynamically create a service unit for the script.

Also, if all else fails there is a "SysVStartPriority" option for service units, which is a "temporary compatibility option".

Note that I haven't tried either of these options.

Comment 3 Jan Kaluža 2012-01-23 12:03:27 UTC
Right, I've found out it should be possible to just use this:

After: nss-lookup.target

And I've already committed it to rawhide.

Comment 4 Frank Crawford 2012-01-23 12:08:47 UTC
I'll try it out as soon as it is available.

Thanks.

Comment 5 Fedora Update System 2012-03-05 11:44:51 UTC
httpd-2.2.22-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/httpd-2.2.22-2.fc16

Comment 6 Fedora Update System 2012-03-06 19:25:42 UTC
Package httpd-2.2.22-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing httpd-2.2.22-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3001/httpd-2.2.22-2.fc16
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-04-01 22:56:36 UTC
httpd-2.2.22-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.