During emerge the /var/cache/squid directory is created as the default location for the squid cache. This directory is created as root:root 0640 while squid most commonly runs under the context of the user "squid". As a result, at the first start of squid when squid -z is invoked, the squid process is unable to write to the cache directory and thus fails to run properly. Squid will start, but it will not service requests and tailing the cache log shows that it is a start - fail/crash - restart loop. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: The default squid cache directory, /var/cache/squid directory should be set as owned by the user squid.
Will add solution for this when -r2 goes stable
The ebuilds have the line this should allready be happening install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid