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
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.
But can't the script send squid a SIGTERM? With `killall -TERM squid` squid exists by itself pretty fast... :-|
(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. :)
(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