Comment 15 for bug 978356

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 978356] Re: squid3 gets killed at startup with dnsmasq and no networkmanager

Excerpts from Daniel Hahler's message of Tue May 15 08:53:06 UTC 2012:
> For what it's worth, this does not happen with the squid-deb-proxy
> package (which uses squid with an optimized config) - at least after
> several boot processes.
>
> The init/start script is different, for example, it uses
> "start on (local-filesystems and net-device-up IFACE!=lo)"

This is basically wrong. A system may have more than one interface and
there is no guarantee that one of them is "the right one".

That said, this makes perfect sense, because with NM, this will delay the
start until *after* the first interface comes up, whereas with runlevel 2,
that event will actually come before the first interface is up, so that
starts the window where squid is starting up, polling for DNS entries
and failing, and then it gets HUP just as the interface comes up.

My patch to ignore HUP early on should solve this issue, but I haven't
pushed it back upstream yet.