diladele / squid-ubuntu

Latest version of Squid proxy recompiled with support for HTTPS filtering and SSL inspection on Ubuntu 22.04 LTS. Used in Web Safety web filter for Squid.
https://docs.diladele.com
168 stars 61 forks source link

/var/run/squid should be created #4

Open Mosibi opened 6 years ago

Mosibi commented 6 years ago

When running Squid in SMP mode, the IPC sockets are created in /var/run/squid. When that directory is missing, or does not have the right permissions, Squid is not going to listen on the configured http_port and shows the following message in the cache.log: commBind Cannot bind socket FD 20

ra-at-diladele-com commented 6 years ago

Sorry and how do I switch Squid to SMP mode to test this?

Mosibi commented 6 years ago

Sorry and how do I switch Squid to SMP mode to test this?

That's very simple, just put `workers 2' in squid.conf. See also http://www.squid-cache.org/Versions/v4/cfgman/workers.html . I have 4 workers configured, 1 for every CPU in that system

thctlo commented 5 years ago

A simple fix. /usr/lib/tmpfiles.d/squid.conf d /run/squid 0755 proxy proxy -

And /var/run is linked to /run

Thank you Raphael for the Ubuntu packages.