This makes pid_filename directive no longer need to be set explicitly to
the service name in multi-tenant installations. Unless the default value
has been replaced with --with-pidfile=Foo it will use the service name
as the .pid filename.
)
AC_SUBST(DEFAULT_LOG_DIR)
-DEFAULT_PID_FILE="$localstatedir/run/squid.pid"
+DEFAULT_PID_FILE="$localstatedir/run/@SERVICE_NAME@.pid"
AC_ARG_WITH(pidfile,
AS_HELP_STRING([--with-pidfile=PATH],
[Default location for squid pid file. Default: PREFIX/var/run/squid.pid]), [
cf_gen_defines \
cf.data.pre \
cf.data.depend \
+ cf.data.sed \
mk-globals-c.awk \
mk-string-arrays.awk \
repl_modules.sh \
-e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
-e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
-e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
+ -f $(srcdir)/cf.data.sed \
< $(srcdir)/cf.data.pre >$@
repl_modules.cc: repl_modules.sh Makefile
--- /dev/null
+s%[@]SERVICE_NAME[@]%${service_name}%g