httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7470] New: - apachectl should read PIDFILE location from httpd.conf
Date Tue, 26 Mar 2002 02:45:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7470>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7470

apachectl should read PIDFILE location from httpd.conf

           Summary: apachectl should read PIDFILE location from httpd.conf
           Product: Apache httpd-1.3
           Version: 1.3.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: hlein@progressive-comp.com


apachectl contains a hardcoded PIDFILE reference, based on what the log dir is
expected to be at compile time.  This is suboptimal; a user may modify
httpd.conf's PidFile option to point foo.pid elsewhere.  Since the location of
httpd.conf is known (hard-coded) at compile time, apachectl can make a best
effort to learn the current PidFile location by reading httpd.conf.

A real diff is munged by this text box's width, but here's a zero context diff
of a vaguely tested, fugly but believed to be portable implementation of this:

--- apache_1.3.24/Makefile.tmpl.orig    Wed Mar 13 16:05:27 2002
+++ apache_1.3.24/Makefile.tmpl Mon Mar 25 21:33:57 2002
@@ -359 +359 @@
-       sed -e 's;PIDFILE=.*;PIDFILE=$(runtimedir)/$(TARGET).pid;' \
+       sed -e 's;PIDFILE=.*;PIDFILE=`awk '\''/^ *PidFile /{print $$2}'\'"  \ 	
					$(sysconfdir)/$(TARGET).conf"'`;' \

Unmolested diff at http://www.theaimsgroup.com/~hlein/haqs/#apachectl-pidfile

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message