summaryrefslogtreecommitdiff
path: root/chat/jabberd2/files/c2s.sh
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2010-04-15 07:01:22 +0000
committeradam <adam@pkgsrc.org>2010-04-15 07:01:22 +0000
commit759be9b10a45b38345fc152ec4f4b246f3a52a64 (patch)
tree57f0fdafad1ef74f0de03eeb1cc3f9532f6033c5 /chat/jabberd2/files/c2s.sh
parent91a8932016286a278de00e92d6805d54c623be7d (diff)
downloadpkgsrc-759be9b10a45b38345fc152ec4f4b246f3a52a64.tar.gz
Rev.2 changes:
* Unlimit file descr. to 1024 for c2s, as in c2s configuration file. * Allow -Os (instead of -O1) as a work-around 64-bit compiler bug. * Router patch.
Diffstat (limited to 'chat/jabberd2/files/c2s.sh')
-rwxr-xr-xchat/jabberd2/files/c2s.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/chat/jabberd2/files/c2s.sh b/chat/jabberd2/files/c2s.sh
index 278f29a3901..a783b7c8d50 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.2 2004/06/26 11:21:46 abs Exp $
+# $NetBSD: c2s.sh,v 1.3 2010/04/15 07:01:23 adam Exp $
#
# PROVIDE: c2s
# REQUIRE: DAEMON
@@ -33,6 +33,11 @@ remove_pidfile()
fi
}
+limits_precmd()
+{
+ ulimit -n 1024
+}
+
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"