From a21cddee701ad7eec8256b1e48d84b729b508231 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 10 Jun 2010 10:36:22 +0000 Subject: Correctly unlimit opened files in c2s.sh --- chat/jabberd2/files/c2s.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chat') 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" -- cgit v1.2.3