Return-Path: Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 59777 invoked by uid 500); 26 Mar 2002 02:45:42 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 59765 invoked from network); 26 Mar 2002 02:45:41 -0000 Date: 26 Mar 2002 02:45:49 -0000 Message-ID: <20020326024549.8262.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 7470] New: - apachectl should read PIDFILE location from httpd.conf X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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