[2/2] squid 5.1: set max number of filedesriptors to 32768

Message ID 20210908160152.3223-2-matthias.fischer@ipfire.org
State New
Headers show
Series [1/2] squid: Update to 5.1 | expand

Commit Message

Matthias Fischer Sept. 8, 2021, 4:01 p.m. UTC
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 <matthias.fischer@ipfire.org>
---
 src/initscripts/system/squid | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Müller Sept. 9, 2021, 8:28 p.m. UTC | #1
Acked-by: Peter Müller <peter.mueller@ipfire.org>

> 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 <matthias.fischer@ipfire.org>
> ---
>  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
>
Michael Tremer Sept. 21, 2021, 10:18 a.m. UTC | #2
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 8 Sep 2021, at 17:01, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
> 
> 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 <matthias.fischer@ipfire.org>
> ---
> 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
> -- 
> 2.18.0
>

Patch

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