Created attachment 766997 [details, diff] squid init script patch Hi, There is a SQUID_FAST_SHUTDOWN variable in conf.d, but it is not honored in the init script. I'm attaching a simple patch for the init script so that if the user wants to the init script will call "-k shutdown" twice when invoking /etc/init.d/squid stop. This will effectively shut down the Squid process quickly (not the same as setting the shutdown_lifetime directive in squid.conf).
squid has an exorbitant high shutdown time even when the squid instance isn't used at all. Honouring the SQUID_FAST_SHUTDOWN option as done by patch from OP is desirable.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51e8c9959875a6be8ff3733e88122f58bbab886e commit 51e8c9959875a6be8ff3733e88122f58bbab886e Author: Hank Leininger <hlein@korelogic.com> AuthorDate: 2023-03-23 03:59:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-23 07:19:40 +0000 net-proxy/squid: add 5.8, minor fixes Added SQUID_FAST_SHUTDOWN support, require USE=ssl when USE=ssl-crtd Closes: https://bugs.gentoo.org/890913 Closes: https://bugs.gentoo.org/835088 Signed-off-by: Hank Leininger <hlein@korelogic.com> Closes: https://github.com/gentoo/gentoo/pull/30313 Signed-off-by: Sam James <sam@gentoo.org> net-proxy/squid/Manifest | 1 + net-proxy/squid/files/squid.initd-r6 | 129 ++++++++++++ net-proxy/squid/squid-5.8.ebuild | 380 +++++++++++++++++++++++++++++++++++ 3 files changed, 510 insertions(+)