Re: [squid-users] problem with filedescriptors after reboot

From: Fernando Lozano <fernando_at_lozano.eti.br>
Date: Fri, 20 Jun 2014 13:58:19 -0300

Hi James,

> On 2014-06-20 09:10, amaury_at_tin.it wrote:
>> I had configured
>> /etc/security/limits.conf
>> squid soft nofile
>> 16384
>> squid hard nofile 16384
>> root soft nofile 16384
>>
>> root hard nofile 16384
>>
>> but to resolve the problem I have to add
>> into /et/init.d/squid
>> #set fildedescriptor
>> set -e
>> ulimit -n 16384
>>
>>
>> thank Eliezer
>
> I've found that adding:
>
> * - nofile 16384
>
> To limits.conf works as well.

That's expected: /etc/init.d/squid doesn't honors limits.conf. But you
changed the limit for all users, root will get then and so will squid
when started.

That's why I told you to put an ulimit command on /etc/sysconfig/squid,
so you can increase the limit just for squid and not for the whole system.

[]s, Fernando Lozano
Received on Fri Jun 20 2014 - 16:58:36 MDT

This archive was generated by hypermail 2.2.0 : Sat Jun 21 2014 - 12:00:04 MDT