From patchwork Wed Sep 8 16:01:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 4691 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4H4Rj76rGKz3x2Y for ; Wed, 8 Sep 2021 16:02:03 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4H4Rj50MNHz6f2; Wed, 8 Sep 2021 16:02:01 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4H4Rj45f1Pz2yyc; Wed, 8 Sep 2021 16:02:00 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4H4Rj26X3mz2xYj for ; Wed, 8 Sep 2021 16:01:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4H4Rj254Jxz6XR for ; Wed, 8 Sep 2021 16:01:58 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1631116918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=xvXM/I2Wc/482sj7/Ub5ShDC0xdrLs2/uo26b8tnFIk=; b=/guP9nYHJwHTbk2kUASQgtTnq1uHLnGsGiNOtBNTLGoSY/N6t0hHjmG6iJ8fFG7TQ6FAxI G1xYqRQhRVe0fHCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1631116918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=xvXM/I2Wc/482sj7/Ub5ShDC0xdrLs2/uo26b8tnFIk=; b=rtWyZuLX26lx+B7pGnG+8GObgxieN61/vAy8mJrS6Uf+Rn0XQo9zO09c/8IYeYEYuTxEFW 4N401E3n4L6eY2a3gaOMXeohuXRyJLiU0TrnoOD7C5UlI9u7AJrlEetvqlZgecYN22Te3k f1S8FjC5clrbus3W6OPyelrsFBONiSvdurjVjriIq5mHoztwSwWK9LTKmVTMvzIosTFjNq o0ULuUFchpSVc5YcQVByKiG8H9SDvtV/CCXS3QJDoKxGt2Y0QaOpId/yYm9ITfxPcAmKlr Jooj5rmJfb/tqzHnEOivmWcBCtY1/9Gbg6tOgUzN5NvPOoaUyh7DMeWDIk/uKA== From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH 2/2] squid 5.1: set max number of filedesriptors to 32768 Date: Wed, 8 Sep 2021 18:01:52 +0200 Message-Id: <20210908160152.3223-2-matthias.fischer@ipfire.org> In-Reply-To: <20210908160152.3223-1-matthias.fischer@ipfire.org> References: <20210908160152.3223-1-matthias.fischer@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Since the maximum number of filedescriptors which are possible for 'squid 5.1' are now 32768, I modified the initscript accordingly. Signed-off-by: Matthias Fischer Acked-by: Peter Müller Reviewed-by: Michael Tremer --- src/initscripts/system/squid | 1 + 1 file changed, 1 insertion(+) diff --git a/src/initscripts/system/squid b/src/initscripts/system/squid index 7255c0aca..09e7a0443 100644 --- a/src/initscripts/system/squid +++ b/src/initscripts/system/squid @@ -48,6 +48,7 @@ transparent() { case "$1" in start) + ulimit -n 32768 getpids "squid" if [ -n "${pidlist}" ]; then