On Sat, 2024-09-21 at 13:16 +0100, Patrick O'Callaghan wrote: > I assume there's a systemd mechanism for getting httpd to wait for the > network before resuming, but I've no idea how to accomplish this. I run Apache on my CentOS PC, and although I don't suspend it, I don't ever recall Apache not working after a cold/warm boot. I have also run it on Fedora (in the past) and not noticed a problem, either. This is its /usr/lib/systemd/system/httpd.service file: --------------- begin paste ------------------ [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target Documentation=man:httpd(8) Documentation=man:apachectl(8) [Service] Type=notify EnvironmentFile=/etc/sysconfig/httpd ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecReload=/usr/sbin/httpd $OPTIONS -k graceful ExecStop=/bin/kill -WINCH ${MAINPID} # We want systemd to give httpd some time to finish gracefully, but still want # it to kill httpd after TimeoutStopSec if something went wrong during the # graceful stop. Normally, Systemd sends SIGTERM signal right after the # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give # httpd time to finish. KillSignal=SIGCONT PrivateTmp=true [Install] WantedBy=multi-user.target --------------- end paste ----------------------- I'd imagine the "After=" section near the top is customisable to make it happen after *your* network is actually working. NB: My server PC runs all my various LAN servers, it's also the DNS and DHCP servers, and its network is manually configured with fixed IPs. So it's own network comes up quickly, and can answer all the network queries that servers might want to make as they start up. -- uname -rsvp Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 Boilerplate: All unexpected mail to my mailbox is automatically deleted. I will only get to see the messages that are posted to the mailing list. -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue