Received: (qmail 24184 invoked by uid 501); 29 Jan 2001 02:33:31 -0000 Message-Id: <20010129023331.24183.qmail@apache.org> Date: 29 Jan 2001 02:33:31 -0000 From: Robert Bagley Reply-To: robert.bagley@ce.gatech.edu To: submit@bugz.apache.org Subject: apachectl cannot stop/restart service if pid filename changed X-Send-Pr-Version: 3.110 >Number: 7145 >Category: os-solaris >Synopsis: apachectl cannot stop/restart service if pid filename changed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jan 28 18:40:00 PST 2001 >Closed-Date: Sun Jan 28 19:17:07 PST 2001 >Last-Modified: Sun Jan 28 19:17:07 PST 2001 >Originator: robert.bagley@ce.gatech.edu >Release: 1.3.14 >Organization: >Environment: I'm running Solaris 8 (SunOS 5.8) on UltraSPARC with the latest GNU gcc, tar, make, etc. uname -a --> SunOS rhine 5.8 Generic_108528-01 sun4u sparc SUNW,Ultra-2 >Description: Standard installation of apache into /usr/local/apache, compiled from source obtained from apache.org web site. If I change /usr/local/apache/conf/httpd.conf so that the pid file is "/usr/local/apache/logs/apache.pid" rather than "/usr/local/apache/logs/httpd.pid", apachectl can no longer stop or restart the web service. Can still stop/restart with a manual kill -TERM or -HUP. >How-To-Repeat: Cannot be observed external to the server... >Fix: Just the obvious: Update apachectl to read the value of "PidFile" as set in httpd.conf >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Sun Jan 28 19:17:07 PST 2001 State-Changed-Why: apachectl is just a simple shell script to help with sending signals to Apache. If you change file locations after the install, you will need to edit apachectl to inform it about the changes. apachectl can't find the PidFile the same way Apache does, because it would need to recreate the entire configuration processing routine, which is not as simple as it may look. Thanks for the suggestion, and thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]