LockFile in Apache 2.2

rihad rihad at mail.ru
Mon Dec 19 18:59:51 UTC 2011


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.


More information about the freebsd-apache mailing list