Summary: | www-servers/apache-2.2.21: 'pidof' finds other instances of /usr/sbin/apache2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stef Simoens <stef.simoens> |
Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug, pva |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stef Simoens
2011-09-24 00:03:24 UTC
Thank you for report. This does not look like a good way to fix. After reading note in "Graceful Restart" section of the document: http://httpd.apache.org/docs/2.2/stopping.html I see that apache leaves children behind: "In the case of graceful restarts it will also leave children running when it exits. (These are the children which are "gracefully exiting" by handling their last request.)" So I'm going to go with while pgrep -p ${PID} >/dev/null && [ $i -lt ${TIMEOUT} ]; do ... And the same problem exists when we have multi instances apache, btw. Peter, i tried your proposal of fix. There is problem, when start-stop-daemon stops apache, then pid file disappear. Pgrep started with empty arg (pgrep -P "") exits with code error 0. Probably variable PID should be checking if is empty. Thank you for report. Fixed in 2.2.21-r1. Please, try it out and report if issue still persist. Marcin I've posted just idea, not the full patch. Full patch was just commited. |