diff options
author | adam <adam> | 2010-12-07 11:42:07 +0000 |
---|---|---|
committer | adam <adam> | 2010-12-07 11:42:07 +0000 |
commit | 39d38d6dcbfd39e67898bfe23f587d2a15023f2e (patch) | |
tree | e7af7cd80e3a2b4b0c9d706dd4bec9a1aa970604 /mail | |
parent | 2d450e9427cd4a57935b3a5174700c0d178c44a9 (diff) | |
download | pkgsrc-39d38d6dcbfd39e67898bfe23f587d2a15023f2e.tar.gz |
Fix setting dovecot_fdlimit
Diffstat (limited to 'mail')
-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 |