Package: squid-deb-proxy Version: 0.8.9 Severity: normal Tags: patch I use squid-deb-proxy on a laptop with many chroots, virtual machines, etc. It works great for that, but when I change networks, I've found I need to restart or reload squid-deb-proxy in order for it to acknowledge new resolver settings. Without that, squid-deb-proxy fails to refresh files or download new files.
There is a hook in /etc/resolvconf/update-libc.d/squid3 for squid3, which at least works when resolvconf is present. With the following hook in /etc/resolvconf/update-libc.d/squid-deb-proxy (shamelessly taken from squid3), squid-deb-proxy seems to work reliably after switching networks: #!/bin/sh PATH="/usr/sbin:/usr/bin:/sbin:/bin" # Make squid aware of changes to resolv.conf # Avoid reload before /usr is mounted if [ -d /usr/sbin ] ; then invoke-rc.d squid-deb-proxy reload || true fi Not sure if there are other places where it would be useful to hook into, but that improves the situation well enough for me. Thanks for maintaining squid-deb-proxy! live well, vagrant
signature.asc
Description: PGP signature