Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jan 2012 19:13:52 +0400
From:      rihad <rihad@mail.ru>
To:        freebsd-apache@FreeBSD.org
Subject:   LockFile in Apache 2.2
Message-ID:  <4F01C9B0.7060909@mail.ru>

next in thread | raw e-mail | index | archive | help
Hi there. I think that in extra/httpd-mpm.conf

   LockFile "/var/log/accept.lock"

should be changed to:

   LockFile "/var/run/accept.lock"


Why? Because after a FreeBSD machine has crashed and rebooted, the 
server may not start if /var/log/accept.lock.$PID already existed. It's 
safe to put in under /var/run/* however, because stale files get cleaned 
up by /etc/rc.d/cleanvar (which runs before apache22 does thanks to 
"REQUIRE: cleanvar").


Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F01C9B0.7060909>