Improve the shell cgroup feature
authorTim Starling <tstarling@wikimedia.org>
Tue, 5 Feb 2013 04:19:53 +0000 (15:19 +1100)
committerTim Starling <tstarling@wikimedia.org>
Tue, 5 Feb 2013 05:47:34 +0000 (16:47 +1100)
commit674962b339795029e0bf404563288a919605bfc6
treec1792dca74212d332a73cdb0ad0d1dc752bf8f61
parentdae7168b573db3cdff9aaf146db4cf003993974c
Improve the shell cgroup feature

* Make the cgroup name configurable, so that it can be switched on and
  off in configuration, or so a different cgroup can be used for
  different wikis. The DefaultSettings.php entry also makes the feature
  more discoverable and so more useful to non-Wikimedia users.

* Send named parameters to the shell script instead of numbered
  parameters. Send the command as argument 1, for easier ps -f
  interpretation.

* Move the wrapper script to includes/, since it doesn't need to be
  executable anymore, so it doesn't make sense for it to be in bin/.

* Remove the requirement for a release script to be used. Clean up in
  the wrapper script instead. The release script had to be configured
  globally, which might not be suitable for all MediaWiki installations.

Change-Id: Ic8362cab63df162852d5df56cf695ef163cd6232
RELEASE-NOTES-1.21
bin/ulimit5.sh [deleted file]
includes/DefaultSettings.php
includes/GlobalFunctions.php
includes/limit.sh [new file with mode: 0644]