[Bug 978356] Re: squid3 gets killed at startup with dnsmasq and no networkmanager

Clint Byrum clint at fewbar.com
Mon Apr 23 17:39:17 UTC 2012


squid3 includes a resolvconf script to run whenever DNS servers change:


#!/bin/sh

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

# Make squid aware of changes to resolv.conf
if status squid3 | grep "start/running" > /dev/null; then
	reload squid3
fi

reconfigure also ends a HUP:

            if (!strncmp(optarg, "reconfigure", strlen(optarg)))
                /** \li On reconfigure send SIGHUP. */
                opt_send_signal = SIGHUP;


And yes, thats what I mean, there's a lag between when squid might receive the HUP, and when it will handle it properly. I'd rather ignore that HUP than die, since most of what it is doing at that exact time is reading its configuration and then attempting DNS lookups. I haven't looked deep enough into the code yet to see if it could handle the full reconfiguration earlier.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/978356

Title:
  squid3 gets killed at startup with dnsmasq and no networkmanager

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/978356/+subscriptions



More information about the Ubuntu-server-bugs mailing list