While it's usefull in configuration binding to specific network addresses (which are associated with certain net devices) a dependency on all network interfaces is uncalled-for. Default config binds to *:80 / *:443 which is address agnostic. Openssh added some magic to detect non-standard configurations in init.d script, maybe apache2 -S (syntax check) is a way to accomplish this here.
To be more precise, on a multi-homed sertup, I most likely want the webserver run on the public interface (net.eth0 or a bridged net.br0 in virtualization setups) but not on the masqueraded private interface net.br1, which gets reloaded every-time I add another net.tapN for the next box. so my apache depends on net.br0 which is exlicitly set in conf.d.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/apache.git/commit/?id=db9bc13b034e1dcca1765dbf0e2a7efcc1b6d3ba commit db9bc13b034e1dcca1765dbf0e2a7efcc1b6d3ba Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2020-12-01 12:07:58 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-12-01 12:12:40 +0000 2.4/init: Attempt to provide a way to no longer "need net" in depend Code blatantly stolen from net-misc/openssh init script Bug: https://bugs.gentoo.org/482092 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> 2.4/init/apache2.initd | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9859769d9175ec7b6b972c21023d40f31ae5f0 commit 2c9859769d9175ec7b6b972c21023d40f31ae5f0 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2020-12-01 13:15:41 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-12-01 13:15:57 +0000 www-servers/apache: Revbump to provide a way to no longer "need net" in openrc init script Closes: https://bugs.gentoo.org/482092 Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> www-servers/apache/Manifest | 1 + www-servers/apache/apache-2.4.46-r2.ebuild | 274 +++++++++++++++++++++++++++++ 2 files changed, 275 insertions(+)