[squid-users] squid restart

2020-11-02 Thread Vieri
Just in case anyone else has this problem, or if anyone would like to comment on this, here's the solution I've found. Running '/etc/init.d/squid restart' from cron (setting it up in crontab) does not honor ulimits. Configuring /etc/crontab with something like 'bash -l /etc/init.d/squid

Re: [squid-users] squid restart

2020-11-02 Thread Eliezer Croitor
Hey Vieri, FD and other limits are a tricky thing in gentoo and couple other systems. In ubuntu for example to apply a ulimit for squid what they did is add a ulimit command at the beginning of the init script. Ie 'ulimit -hn 65535;ulimit -sn 65535' In other init or startup systems like systemd

Re: [squid-users] squid restart

2020-11-02 Thread Vieri
On Saturday, October 31, 2020, 4:08:23 PM GMT+1, Amos Jeffries wrote: >> However, I set the following directive in squid.conf: >> >> max_filedescriptors 65536 >> > Are you using systemd, SysV or another init ? I'm using SysV on Gentoo Linux. > It doesn't seem to be honored here unless I