Last modified: 2013-01-14 15:45:32 UTC
Using __FILE__ as a basis is not the correct way to get separate pid files for separate wikis, because multiple wikis may use the same install base. This is especially true for the installations run by Wikimedia. Either get the PID file from the command line, or use something like wfWikiID(). Some more minor issues: I would reserve .lck for actual lock files. This is not really a lock file. .pid is often used on unix for this, look into your /var/run directory for examples. Under *nix, it would be nicer to use a file in /var/run (you will see a whole bunch of .pid files there already). The file in /var/run would need to be created and chowned to the correct user for that to work though. Perhaps just try to use /var/run/xyz first (check whether the dir exist and the file is writable / can be created), otherwise use the OS' temp dir.
For reference, the PID stuff was introduced by I82973368.
done in https://gerrit.wikimedia.org/r/#/c/24122/