httpd.pid storage location

Scott Haneda talklists at newgeo.com
Fri Oct 9 01:19:18 PDT 2009


On Oct 9, 2009, at 12:21 AM, Ryan Schmidt wrote:

> On Oct 9, 2009, at 01:38, Scott Haneda wrote:
>
>> On Oct 8, 2009, at 11:24 PM, Scott Haneda wrote:
>>
>>> This may be a strange question, but why is Apache2's pid file  
>>> stored in the logs directory of Apache2?  I am doing some basic  
>>> background on this, and some put it in var/run, in this case  
>>> prefix first of course, but I do not find any official suggestion  
>>> on the layout.
>>>
>>> It does strike me as odd to store it in the logs folder, of all  
>>> non MP installs, I do spend some time in logs directories, and  
>>> have never met a pid on that side of town.
>>
>> Nevermind, as I was looking into log rotation of all things, I find  
>> it nestled here:
>> http://httpd.apache.org/docs/1.3/logs.html#pidfile
>> Sorry for the noise.
>
> pidfile in the log directory does strike me as an odd choice too. It  
> looks like it's how Apache likes it done, but you're right, most  
> other ports put their pid files in ${prefix}/var/run or ${prefix}/ 
> var/run/${name}.

Sounds good to me, probably w/o the ${name} since that is what the  
docs are saying.

> P.S: Note there's newer Apache 2.2 documentation:
>
> http://httpd.apache.org/docs/2.2/mod/mpm_common.html#pidfile

Thank you!

> At least the example given there shows how to change it to /var/run.
>
> When we get around to fixing the apache2 layout (#21315), we can  
> also patch the sample httpd.conf to use ${prefix}/var/run for the  
> pid file.


Oh that old thing :)
-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-dev mailing list