Hello Simon,

Simon Kelley schrieb/wrote:
-- <snip> --
>> for the purpose you described this line can be dropped completely IMHO.
>> The following line in the init script already has:
>>
>> test -x $DAEMON || exit 0

-- <snip> --
> 
> It's not that simple, unfortunately. There are actually _two_ dnsmasq
> packages, dnsmasq, and dnsmasq-base. Dnsmasq-base provides the binary
> and documentation, and is depended on by various things like
> networkmanager. The dnsmasq package provides the system-started daemon.
> 
> The problem that this code is trying to solve is the case when both
> packages are installed, then just dnsmasq is removed. At this point
> dnsmasq should not be started at boot time, but the binary still exists
> (since dnsmasq-base is still installed.)
> 
> That explains why the code looks at /etc/dnsmasq.d/README since that's
> installed by the dnsmasq package and isn't a conffile. SO when the
> dnsmasq package is removed /etc/dnsmasq.d/README is removed.
> 
> Any suggestions for a cleaner approach gratefully accepted......

I see. This is more involved then i had anticipated.
I will look at that, not sure if i can up with s.th. better though.

Thanks for your reply.



kind regards,

     Thilo

Reply via email to