From d62d46d9cfde7b97002868dd10f822db3c6166b7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 8 Apr 2014 11:17:04 +0200 Subject: [PATCH] Raise ulimit -n for stunnel --- modules/stunnel4/files/etc-init.d-stunnel4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/stunnel4/files/etc-init.d-stunnel4 b/modules/stunnel4/files/etc-init.d-stunnel4 index e2f442e72..6456bfb7d 100755 --- a/modules/stunnel4/files/etc-init.d-stunnel4 +++ b/modules/stunnel4/files/etc-init.d-stunnel4 @@ -23,6 +23,8 @@ DESC="SSL tunnels" OPTIONS="" ENABLED=0 +ulimit -n 4096 + if [ -n "${2:-}" ]; then if [ -e "/etc/stunnel/$2.conf" ]; then FILES="/etc/stunnel/$2.conf" -- 2.20.1