Created attachment 490872 [details, diff] patch for the init script Currently, the Gentoo Squid package ships an init script that allows the configuration of multiple instances with the use of SVCNAME, but does not take into account that service names have to be unique according to https://wiki.squid-cache.org/MultipleInstances. The attached patch for the init script deals with the -n option which is OK for both single and multi setups. Apart from this, maybe a note and link to https://wiki.squid-cache.org/MultipleInstances should also be added as an einfo in the squid ebuild post-installation step so the user is aware about other settings such as "unique_hostname", "pid_filename", "cache_dir", "cache_log", etc.
Could please let me know if you are considering merging this to the official tree or not? Thanks
Created attachment 503268 [details] squid init script I'm attaching a new init script for Squid. It includes support for "multiple instances", but also adds a double-shutdown option to allow faster shutdown of the squid process. See attached conf file too.
Created attachment 503270 [details] squid confd file Adds support for shutting down squid faster.
Created attachment 504496 [details] squid init script I'm adding yet another Squid init script which includes my previous comments + adds support for checking include conf files for directives such as pid_filename.
Created attachment 504520 [details] squid init script replaces previous init script with minor changes
Should be addressed in 4.x bump