Comment 14 for bug 1761096

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote : Re: [Bug 1761096] Re: dnsmasq starts with error on Ubuntu Xenial amd64 when squid installed

On Friday, September 04 2020, Christian Ehrhardt  wrote:

> Thanks for --no-ask-password Sergio.
>
> I like the suggestion of making /etc/resolvconf/update-libc.d/squid systemd aware.
>>From similar checks I know that you also want to check if it is active:
>
> if [ -d /run/systemd/system ]; then
> ! systemctl is-active -q squid.service || systemctl reload squid.service >/dev/null
>
> The above is untested, but you get my point - don't reload if it isn't
> active.

Thanks, Christian. Good point about checking whether the service is
active; I'll incorporate that into the solution.

I'll prepare an MP soon, then.

Cheers,

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14