Public bug reported:

There is a script (/etc/resolvconf/update-libc.d/squid)  provided by the
squid package which calls:

  invoke-rc.d reload squid || true

The thing is, that command somehow does not cause the squid to reload.
This is particularly painful when Ubuntu is being contained in
VirtualBox and some resolv.conf changes are done during the boot
process. I.e. after the system boot the squid proxy server is just not
working (it returns HTTP/500 and HTTP header X-Squid-Error:
ERR_CANNOT_FORWARD). In access log one can see something like this:

  1518190105.150      0 TCP_MISS/500 4495 GET - HIER_NONE/- 
  1518190105.153      0 TCP_MISS/500 4474 GET - HIER_NONE/- 

I.e. HIER_NONE appears practically after 0 miliseconds means that squid
is experiencing connectivity problems.

That being said, reloading squid using systemd equivalent of the invoke-
rc.d command works just fine (in the script also):

  systemctl reload squid || true

So, to sum up, I would like to ask to fix the squid package by either:
* Change /etc/resolvconf/update-libc.d/squid to use `systemctl reload squid`
* Make `invoke-rc.d reload` work properly for squid

Description:    Ubuntu 17.10
Release:        17.10
  Installed: 3.5.23-5ubuntu1.1
  Candidate: 3.5.23-5ubuntu1.1

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: squid 3.5.23-5ubuntu1.1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Feb  9 17:03:47 2018
InstallationDate: Installed on 2016-08-03 (555 days ago)
InstallationMedia: Kubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: squid3
UpgradeStatus: Upgraded to artful on 2017-10-05 (127 days ago)
mtime.conffile..etc.squid.squid.conf: 2017-11-27T19:29:36.332000

** Affects: squid3 (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug artful

** Patch added: "Proposed fix: use systemd in 

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Automatic squid reload on resolv.conf update does not work

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to