diff options
author | adam <adam@pkgsrc.org> | 2010-12-07 11:42:07 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2010-12-07 11:42:07 +0000 |
commit | aa3224cb7d898423b62f29a22d44715fd4c40b78 (patch) | |
tree | e7af7cd80e3a2b4b0c9d706dd4bec9a1aa970604 /mail/dovecot2 | |
parent | 35e7f784738c6bd28b97014b9d0d44acd4c3563d (diff) | |
download | pkgsrc-aa3224cb7d898423b62f29a22d44715fd4c40b78.tar.gz |
Fix setting dovecot_fdlimit
Diffstat (limited to 'mail/dovecot2')
-rwxr-xr-x | mail/dovecot2/files/dovecot.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/dovecot2/files/dovecot.sh b/mail/dovecot2/files/dovecot.sh index 06577331eea..2e0de1ab7c4 100755 --- a/mail/dovecot2/files/dovecot.sh +++ b/mail/dovecot2/files/dovecot.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: dovecot.sh,v 1.1.1.1 2010/11/05 12:00:39 adam Exp $ +# $NetBSD: dovecot.sh,v 1.2 2010/12/07 11:42:07 adam Exp $ # # PROVIDE: dovecot @@ -23,9 +23,9 @@ HARD_FDLIMIT=`ulimit -H -n` if [ ${dovecot_fdlimit} -gt ${SOFT_FDLIMIT} ]; then if [ ${dovecot_fdlimit} -le ${HARD_FDLIMIT} ]; then - ulimit -S -n ${dovecot_fdlimit} + ${SOFT_FDLIMIT} ${dovecot_fdlimit} else - ulimit -S -n ${HARD_FDLIMIT} + ${HARD_FDLIMIT} ${dovecot_fdlimit} fi fi |