diff options
author | adam <adam@pkgsrc.org> | 2010-06-10 10:36:22 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2010-06-10 10:36:22 +0000 |
commit | a21cddee701ad7eec8256b1e48d84b729b508231 (patch) | |
tree | bfb585572d66aa66f799c8057c9d8b0cdc064e12 /chat | |
parent | 604140027553d49389bbdafbdd38093a4d2558fd (diff) | |
download | pkgsrc-a21cddee701ad7eec8256b1e48d84b729b508231.tar.gz |
Correctly unlimit opened files in c2s.sh
Diffstat (limited to 'chat')
-rwxr-xr-x | chat/jabberd2/files/c2s.sh | 8 |
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" |