[packages] transmission: set ulimit for open files
authorCezary Jackiewicz <cezary@eko.one.pl>
Thu, 10 Mar 2011 05:58:02 +0000 (05:58 +0000)
committerCezary Jackiewicz <cezary@eko.one.pl>
Thu, 10 Mar 2011 05:58:02 +0000 (05:58 +0000)
commit0d11b38dceed2d9b9e6b42d23e82e00370db3b38
tree1715d7c37584ad93c4b437bccd84a0f87c89ca53
parent7136d005ff8005172e00db290f071a1636b749c7
[packages] transmission: set ulimit for open files

Currently, transmission daemon allows you to set the max number of open
files, but it can be more than allowed by the system, thus resulting in
errors if transmission uses more than set in ulimit. The following is
a patch to compare ulimit vs open_file_limit from /etc/config/transmission.
If the open_file_limit is greater than `ulimit -n`, then invoke
ulimit -n open_file_limit + 8 (since transmission's open file limit any
seems to pertain only to open torrent files)

Signed-off-by: Joe Roback <joe at roback.cc>
SVN-Revision: 25991
net/transmission/Makefile
net/transmission/files/transmission.init