summaryrefslogtreecommitdiff
path: root/chat/jabberd2
diff options
context:
space:
mode:
authoradam <adam>2010-06-10 10:36:22 +0000
committeradam <adam>2010-06-10 10:36:22 +0000
commit60be58a39b66a63623ed7748d3b2926a77a3ce31 (patch)
treebfb585572d66aa66f799c8057c9d8b0cdc064e12 /chat/jabberd2
parent4feb568d62c7179312f7c9e9aa5f4e552e870564 (diff)
downloadpkgsrc-60be58a39b66a63623ed7748d3b2926a77a3ce31.tar.gz
Correctly unlimit opened files in c2s.sh
Diffstat (limited to 'chat/jabberd2')
-rwxr-xr-xchat/jabberd2/files/c2s.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/chat/jabberd2/files/c2s.sh b/chat/jabberd2/files/c2s.sh
index a783b7c8d50..d5879d2dbef 100755
--- a/chat/jabberd2/files/c2s.sh
+++ b/chat/jabberd2/files/c2s.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: c2s.sh,v 1.3 2010/04/15 07:01:23 adam Exp $
+# $NetBSD: c2s.sh,v 1.4 2010/06/10 10:36:22 adam Exp $
#
# PROVIDE: c2s
# REQUIRE: DAEMON
@@ -24,6 +24,7 @@ ensure_piddir()
{
mkdir -p @JABBERD_PIDDIR@
chown @JABBERD_USER@ @JABBERD_PIDDIR@
+ ulimit -n 1024
}
remove_pidfile()
@@ -33,11 +34,6 @@ remove_pidfile()
fi
}
-limits_precmd()
-{
- ulimit -n 1024
-}
-
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"