reopen 675854
retitle 675854 "systemd breaks dnsmasq"
reassign 675854 systemd
thanks


Just verified it back with sysvinit. If the expectation is that every
package maintainer has to adapt systemd, then this bug can be
closed/reassigned. Otherwise, if systemd is expected to run sysv
initscripts in compat mode without breaking them, then this is a bug.


I see that systemd provides a dnsmasq service.  In the sysv init method,
it sources /etc/default/dnsmasq for a couple of settings, one of which
matters this use case. Looking at the systemd service file for dnsmasq,
I do not see the equivalent.

How do we do that in systemd? This will be a common problem for many of
my packages too which do a lot of shell work to bring sanity.


On Thursday 07 June 2012 07:46 PM, Ritesh Raj Sarraf wrote:
> On Sunday 03 June 2012 11:12 PM, Ritesh Raj Sarraf wrote:
>> Package: dnsmasq
>> Version: 2.61-1
>> Severity: normal
>>
>> With dnsmasq, I am supposed to just see 127.0.0.1 in my
>> /etc/resolv.conf. The actual nameserver entries, based on my network
>> connection state, should be updated in /var/run/dnsmasq/resolv.conf.
>> This is the expectation when using dnsmasq + resolvconf.
>>
>> My config is customized as per the recommendations. But still,
>> resolvconf keeps committing changes into /etc/resolv.conf, which,
>> forfeits the whole idea of install dnsmasq.
>>
>>
>> At the time of this writing, with the attached dnsmasq settings in this
>> bug report, the following is the state of /etc/resolv.conf
>>
>> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
>> # resolvconf(8)
>> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
>> nameserver 192.168.2.1
>> nameserver 10.73.158.106
>> nameserver 10.73.158.107
>>
>>
>> In its current state, how is dnsmasq supposed to be used? Or is it a
>> buggy behavior I am facing?
>>
>>
> Definitely something to do with the reboot warning that resolvconf
> mentions. Right now, like I'd have hoped, the resolv.conf is set up
> properly. Closing this bug.
>


-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to