Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835088 - net-proxy/squid and SQUID_FAST_SHUTDOWN in conf.d
Summary: net-proxy/squid and SQUID_FAST_SHUTDOWN in conf.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hank Leininger
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-13 21:27 UTC by Vieri
Modified: 2023-03-23 07:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
squid init script patch (squid.initd-r5.patch,697 bytes, patch)
2022-03-13 21:27 UTC, Vieri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vieri 2022-03-13 21:27:01 UTC
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).
Comment 1 Fabian Groffen gentoo-dev 2022-12-25 12:04:49 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2023-03-23 07:20:38 UTC
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(+)