summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjmmv <jmmv>2006-01-24 15:21:22 +0000
committerjmmv <jmmv>2006-01-24 15:21:22 +0000
commit23ada20a1e6e62b601a4a2e959189f29cd83379f (patch)
tree7890e0445acd0483d6154c2988223ea202d4ff2f /net
parent1a5e8e21856c435c131983a7c640bfea8af2cbb9 (diff)
downloadpkgsrc-23ada20a1e6e62b601a4a2e959189f29cd83379f.tar.gz
Unlimit the maximum number of open files when starting the daemon as it
requires more than the default 64. Bump PKGREVISION to 1. Fixes PR pkg/32602. I guess the real solution could be to modify mldonkey's source to unlimit this value itself, but I don't want to deal with (i.e., learn) ocaml code...
Diffstat (limited to 'net')
-rw-r--r--net/mldonkey/Makefile4
-rw-r--r--net/mldonkey/files/mldonkey.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/net/mldonkey/Makefile b/net/mldonkey/Makefile
index 1a33176bd77..27db424c7b5 100644
--- a/net/mldonkey/Makefile
+++ b/net/mldonkey/Makefile
@@ -1,8 +1,10 @@
-# $NetBSD: Makefile,v 1.33 2006/01/06 17:01:12 wiz Exp $
+# $NetBSD: Makefile,v 1.34 2006/01/24 15:21:22 jmmv Exp $
#
.include "Makefile.common"
+PKGREVISION= 1
+
RCD_SCRIPTS= mldonkey
BUILD_DEFS+= MLDONKEY_GROUP MLDONKEY_HOME MLDONKEY_USER
diff --git a/net/mldonkey/files/mldonkey.sh b/net/mldonkey/files/mldonkey.sh
index bb2c20f39b0..0586b454ec2 100644
--- a/net/mldonkey/files/mldonkey.sh
+++ b/net/mldonkey/files/mldonkey.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: mldonkey.sh,v 1.3 2004/12/25 19:13:34 jmmv Exp $
+# $NetBSD: mldonkey.sh,v 1.4 2006/01/24 15:21:22 jmmv Exp $
#
# KEYWORD: shutdown
# PROVIDE: mldonkey
@@ -27,6 +27,7 @@ mldonkey_start() {
else
@ECHO@ " ${name}"
fi
+ ulimit -n `ulimit -H -n`
@SU@ -l ${mldonkey_user} \
-c "${command} ${mldonkey_flags} ${command_args}" &
}