Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1948

Closed
Created Dec 10, 2025 by Jérome Perrin@jeromeOwner
  • Report abuse
Report abuse

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

  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 7

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.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/httpd-stale-pid
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7