LockFile in Apache 2.2

rihad rihad at mail.ru
Mon Jan 2 15:29:33 UTC 2012

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").


More information about the freebsd-apache mailing list