From 759be9b10a45b38345fc152ec4f4b246f3a52a64 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 15 Apr 2010 07:01:22 +0000 Subject: 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. --- chat/jabberd2/files/c2s.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chat/jabberd2/files/c2s.sh') 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" -- cgit v1.2.3