FS#39205 - [apache] create lock file directory

Attached to Project: Arch Linux
Opened by Yardena Cohen (yardenac) - Thursday, 06 March 2014, 22:17 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 02 April 2014, 20:08 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Please create a directory for file-based locking in Apache. It just needs a new line in /usr/lib/tmpfiles.d/apache like this:

d /run/httpd 0755 root root -
d /run/httpd/locks 0700 root root -

That allows something like this in httpd.conf:

Mutex "file:/run/httpd/locks"

Apache version: 2.4.7
Relevant file: https://projects.archlinux.org/svntogit/packages.git/tree/apache/trunk/apache.tmpfiles.conf
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 02 April 2014, 20:08 GMT
Reason for closing:  Won't implement
Additional comments about closing:  If you change default paths, you should also update the configuration for that.
Comment by Anatol Pomozov (anatolik) - Friday, 07 March 2014, 00:47 GMT
How it differs from using the default RuntimeDir (i.e. '/run/httpd') for locks?
Comment by Yardena Cohen (yardenac) - Wednesday, 12 March 2014, 07:08 GMT
You can have slightly stricter permissions and more guarantee against name collisions. This is how I've always run it. Admittedly /run/httpd works though.

Loading...