On my ubuntu machine, I have squid3 as a daemon which starts at boot.
The problem is that squid3 takes a long time to start and stop (more than 30 seconds) and it has also slowed down my OS startup/shutdown time considerably.
How can I solve this issue?
There is a parameter called shutdown_lifetime. It has a default value of 30 seconds.
So when Squid receives a shutdown request, it waits at least 30 seconds before it terminates.
Just "uncomment" the last line and set a shorter time:
For more info see below.
http://www.squid-cache.org/Doc/config/shutdown_lifetime/
I found this for Squid 3.1.20-2.2 package for Debian Wheezy.
, this function is using this unrecognized signal (0).
Workaround: at line 90, change the signal to a SIGTERM signal like, 15.
Then, there will be no delays when starting/stopping Squid:
Beware: although it provides fast start/stop for the service, this workaround could break the purpose of the script, which uses signal 0 for its own reasons.