Bug 50350

Summary: unusual behavior of httpd with no -k
Product: Apache httpd-2 Reporter: Eric Covener <covener>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal Keywords: FixedInTrunk
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Eric Covener 2010-11-27 15:17:34 UTC
when httpd is invoked without any -k option, mpm_common never registers ap_signal_server, which causes main() in server/main.c to continue through to startup-style processing without trying to look for an old pidfile.

e.g.

apachectl -f conf/httpd.conf
sleep 2
apachectl -f conf/httpd.conf


vs. any of the normal forms (single apachectl positional argument, or trailing -k start). 

Possible solutions would be to treat lack of -k arg even more like "start" and register signal_server, or blow up in the rewrite args hook (and check its return value) when no -k at all is present (maybe this in trunk?).
Comment 1 Eric Covener 2010-11-28 19:12:43 UTC
r1039989 in trunk checks the pidfile when this implied -k start is being used.
Comment 2 Eric Covener 2010-12-04 07:52:10 UTC
not backporting