From aa3224cb7d898423b62f29a22d44715fd4c40b78 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 7 Dec 2010 11:42:07 +0000 Subject: Fix setting dovecot_fdlimit --- mail/dovecot2/files/dovecot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mail/dovecot2') 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 -- cgit v1.2.3