squid restart fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
Binary package hint: squid
Any method of restarting squid fails to restart it. Such as:
============
user@scrap:~$ sudo /etc/init.d/squid restart
[sudo] password for user:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service squid restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart squid
restart: Job failed to restart
=============
user@scrap:~$ sudo service squid restart
[sudo] password for user:
restart: Job failed to restart
===========
user@scrap:~$ sudo restart squid
restart: Job failed to restart
==========
After a while, a "start" using any of these methods works fine.
I'm assuming the root problem is that squid takes considerable time to shut down; in the previous init system, "/etc/init.d/squid stop" would not return until squid had exited. The new behavior of returning immediately is quite desirable in the effort to speed suspend and shutdown times, but I think "restart" is still just implemented by "stop" immediately followed by a "start". If the current "stop" behavior is retained, I would guess "restart", instead of being "stop" then "start", will have to have a check for pid exit placed into it. squid shutdowns are on the order of 10s of seconds so if this involves polling I would check every second at the most.
Find attached my squid.conf, in case there's some configuration workaround...
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sat May 8 23:54:16 2010
ExecutablePath: /usr/sbin/squid
ProcEnviron: PATH=(custom, no user)
SourcePackage: squid
Here's squid.conf, in case there's some configuration option that does what I need