Package: apache2
Version: 2.4.46-1
Severity: minor

Hi,

Currently, httpd's systemd configuration uses `apachectl stop` for
ExecStop. This means that by default, httpd is shutdown by `systemctl stop`
using the abrupt TERM signal instead of the graceful WINCH. I think
graceful shutdown is a safer and more sensible default config; nginx has
used graceful shutdown for a long time now:

https://salsa.debian.org/mohd-akram/nginx/-/commit/caee1c2a8790f3f5ad1e8f277d0426189a43558f

I think the only modification required for this is the following
replacement for the `ExecStop=...` line in `debian/apache2.service` and
`debian/apache2@.service`:

    ExecStop=/usr/sbin/apachectl graceful-stop
    KillMode=mixed

Though someone more experienced might know better. I'm also not sure how
the relatively new mod_systemd (
https://httpd.apache.org/docs/trunk/mod/mod_systemd.html) affects this.

Regards,
DJ

Reply via email to