Skip to content

Draft: monitor: use httpd -k start to handle stale PID files

Jérome Perrin requested to merge fix/httpd-stale-pid into master

Instead of using a custom shell wrapper script to detect and remove stale PID files before starting httpd, use the built-in -k start option of Apache httpd which properly handles this case.

When httpd is invoked with -k start, it checks if the process identified by the PID file is actually running before deciding whether to start. If the PID file contains a stale PID (process not running or running a different program), httpd will start normally.

This reverts the approach from ee35dc1c which added a custom wrapper script, and replaces it with the standard Apache mechanism.

Merge request reports