This allows squid.conf directives to be configured per-service by
expanding into the -n service_name parameter. The default is "squid".
static void
ProcessMacros(char*& line, int& len)
{
+ SubstituteMacro(line, len, "${service_name}", service_name);
SubstituteMacro(line, len, "${process_name}", TheKidName);
SubstituteMacro(line, len, "${process_number}", xitoa(KidIdentifier));
}
${process_number} expands to the current Squid process
identifier, which is an integer number (e.g., 1, 2, 3) unique
- across all Squid processes.
+ across all Squid processes of the current service instance.
+
+ ${service_name} expands into the current Squid service instance
+ name identifier which is provided by -n on the command line.
+
COMMENT_END
# options still not yet ported from 2.7 to 3.x