#!/usr/bin/env bash # ============================================================================= # entrypoint.sh — Stack Apache HTTPD + ja4ebpf # Démarre Apache en foreground et lance ja4ebpf en arrière-plan. # ============================================================================= set -euo pipefail # Activer le module HTTP/2 si pas déjà chargé if ! httpd -M 2>/dev/null | grep -q http2_module; then echo "LoadModule http2_module modules/mod_http2.so" >> /etc/httpd/conf.modules.d/00-base.conf fi # Créer les répertoires de run nécessaires mkdir -p /run/httpd /var/log/httpd # Démarrer ja4ebpf en arrière-plan /usr/local/bin/ja4ebpf -config /etc/ja4ebpf/config.yml & JA4_PID=$! echo "[entrypoint] ja4ebpf démarré (PID $JA4_PID)" # Attendre que ja4ebpf charge ses programmes eBPF sleep 2 # Démarrer Apache HTTPD en foreground echo "[entrypoint] Démarrage d'Apache HTTPD..." exec /usr/sbin/httpd -DFOREGROUND