www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haydn Haines <ha...@sun.com>
Subject general/7876: Apache failing with use of the "PidFile" variable in httpd.conf
Date Mon, 18 Jun 2001 10:17:33 GMT

>Number:         7876
>Category:       general
>Synopsis:       Apache failing with use of the "PidFile" variable in httpd.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jun 18 03:20:02 PDT 2001
>Originator:     haydn@sun.com
>Release:        1.3.20
# uname -a
SunOS whippet 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10

apache 1.3.20 w/ php 4.0.5 installed as a static mod
I have changed the "PidFile" variable in httpd.conf to 
"/opt/local/logs/httpd.pid," apache starts fine and creates
the pid file in the correct place. But when trying to stop 
apache it still looks for the pid file in the default location!

The following should help:

# ./bin/apachectl start
./bin/apachectl start: httpd started

# ./bin/apachectl stop
./bin/apachectl stop: httpd (no pid file) not running

# more /opt/local/apache/conf/httpd.conf |grep pid
PidFile /opt/local/logs/httpd.pid

# more /opt/local/logs/httpd.pid

# truss ./bin/apachectl stop
read(19, "\t E R R O R = 2\n      ".., 128)     = 128
stat64("/opt/local/apache/logs/httpd.pid", 0xFFBEEF20) Err#2 ENOENT
./bin/apachectl stop: httpd (no pid file) not running


 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message