Description of problem: If your network is slow coming up (say you're using DHCP and the server is unavailable or rebooting after a power outage, etc) then this service might come up before the network is sufficiently configured. Recommend adding [Unit] Wants=network-online.target After=network-online.target to .service file. Version-Release number of selected component (if applicable): httpd-2.4.28-1.fc26.x86_64 How reproducible: Bring up host while DHCP server is down. Steps to Reproduce: 1. Provision host to use DHCP 2. Shutdown DHCP server 3. Reboot host under test Actual results: Service requires host's IP address and hostname to properly operate Expected results: Service should not be started until network is adequately configured. Additional info:
Affects rawhide / fc27 as well
In the default configuration, the service does not depend on specific IP address availability, thus the default httpd.service does not need to require network-online.target. As documented in httpd.service(8), non-default configurations which enable httpd at boot time will need to be configured appropriately.