Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113437 - the init script cannot stop squid
Summary: the init script cannot stop squid
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 01:27 UTC by Andrei Ivanov
Modified: 2009-06-03 13:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ivanov 2005-11-24 01:27:04 UTC
Since a very long time ago, the squid init cannot stop squid, and I have to stop
it manually with killall squid:

 * Stopping squid ...
 * Waiting ............................................................. *
Failed.                                                                      [ !
 [ ok ]

Current version of squid is 2.5.12
baselayout is 1.12.0_pre11
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 04:06:36 UTC
Not much we could do about it; if squid is unable to stop itself withing two
minutes, the init script gives up. This is intended behaviour, so not really a bug.
Comment 2 Andrei Ivanov 2005-11-24 07:25:53 UTC
But can't the script send squid a SIGTERM?
With `killall -TERM squid` squid exists by itself pretty fast... :-|
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 07:52:57 UTC
(In reply to comment #2)
> But can't the script send squid a SIGTERM?
> With `killall -TERM squid` squid exists by itself pretty fast... :-|

Uhm, using such dirty hacks to work around the inability of squid to stop itself
properly in reasonable time is not an option. :)
Comment 4 Daithi O'hAonghusa 2009-06-03 13:40:28 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > But can't the script send squid a SIGTERM?
> > With `killall -TERM squid` squid exists by itself pretty fast... :-|
> 
> Uhm, using such dirty hacks to work around the inability of squid to stop itself
> properly in reasonable time is not an option. :)

Such dirty hacks would then require more dirty hacks. It's a downward spiral.

>    if [ -f /var/run/squid.pid ] ; then
>       [[ "$(ps `cat /var/run/squid.pid`| grep `cat /var/run/squid.pid`)" ]] && {
>          einfon "Waiting for squid to shutdown ."
>
># dot dot dot
>
>          done
>          echo
>       }
>    fi
>    eend 0