the problem is squid waits for 30 (default) seconds to terminate, and prevents new squid process from spawning. I have just added this to my /etc/init/squid.conf
this causes upstart to wait for squid to fully exit before declaring it stopped, this means things like restart squid function as expected
post-stop script
pidof \(squid\) >> /dev/null
while [ $? -eq 0 ]; do sleep 1 pidof \(squid\) || exit 0 >> /dev/null
done
end script
the problem is squid waits for 30 (default) seconds to terminate, and prevents new squid process from spawning. I have just added this to my /etc/init/ squid.conf
this causes upstart to wait for squid to fully exit before declaring it stopped, this means things like restart squid function as expected
post-stop script
sleep 1
pidof \(squid\) || exit 0 >> /dev/null
pidof \(squid\) >> /dev/null
while [ $? -eq 0 ]; do
done
end script
The wait time for squid shutdown can be controlled with the 'shutdown_lifetime' variable www.squid- cache.org/ Versions/ v2/2.7/ cfgman/ shutdown_ lifetime. html
http://