Bug#987245: apache2: After=network.target should be After=network-online.target
Package: apache2
Version: 2.4.46-4
Severity: normal
Tags: sid bullseye
Dear Maintainer,
When /etc/apache2/ports.conf listens specific IP addresses like below
Listen 192.168.1.2:80
Listen 153.240.174.134:64193
Listen [2400:4050:2ba1:ac00:99:f0ae:8600:9595]:80
Listen [2400:4050:2ba1:ac00:99:f0ae:8600:beef]:80
apache httpd needs those IP addresses being already configured
when it starts, otherwise the httpd fails to start.
This ordering dependency is captured by
After=network-online.target
Wants=network-online.target
The current apache2.service systemd file seems slightly incorrect.
Best regards, Ryutaroh Matsumoto
-- Package-specific info:
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-security'), (500, 'unstable'), (1, 'experimental')
Architecture: arm64 (aarch64)
Kernel: Linux 5.10.0-6-arm64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apache2 depends on:
ii apache2-bin 2.4.46-4
ii apache2-data 2.4.46-4
ii apache2-utils 2.4.46-4
ii dpkg 1.20.7.1
ii init-system-helpers 1.60
ii lsb-base 11.1.0
ii mime-support 3.66
ii perl 5.32.1-3
ii procps 2:3.3.17-5
Versions of packages apache2 recommends:
ii ssl-cert 1.1.0
Versions of packages apache2 suggests:
pn apache2-doc <none>
pn apache2-suexec-pristine | apache2-suexec-custom <none>
pn www-browser <none>
Versions of packages apache2-bin depends on:
ii libapr1 1.7.0-6
ii libaprutil1 1.6.1-5
ii libaprutil1-dbd-sqlite3 1.6.1-5
ii libaprutil1-ldap 1.6.1-5
ii libbrotli1 1.0.9-2+b2
ii libc6 2.31-11
ii libcrypt1 1:4.4.18-2
ii libcurl4 7.74.0-1.2
ii libjansson4 2.13.1-1.1
ii libldap-2.4-2 2.4.57+dfsg-2
ii liblua5.3-0 5.3.3-1.1+b1
ii libnghttp2-14 1.43.0-1
ii libpcre3 2:8.39-13
ii libssl1.1 1.1.1k-1
ii libxml2 2.9.10+dfsg-6.3+b1
ii perl 5.32.1-3
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages apache2-bin suggests:
pn apache2-doc <none>
pn apache2-suexec-pristine | apache2-suexec-custom <none>
pn www-browser <none>
Versions of packages apache2 is related to:
ii apache2 2.4.46-4
ii apache2-bin 2.4.46-4
-- Configuration Files:
/etc/apache2/conf-available/charset.conf changed:
AddDefaultCharset UTF-8
/etc/apache2/ports.conf changed:
Listen 192.168.1.2:80
Listen 153.240.174.134:64193
Listen [2400:4050:2ba1:ac00:99:f0ae:8600:9595]:80
Listen [2400:4050:2ba1:ac00:99:f0ae:8600:beef]:80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
-- no debconf information
Reply to: