Simon Kelley schrieb/wrote: > > The following code in /etc/init.d/dnsmasq is responsible for this > behaviour. > > # /etc/dnsmasq.d/README is a non-conffile installed by the dnsmasq > package. > # Should the dnsmasq package be removed, the following test ensures that > # the daemon is no longer started, even if the dnsmasq-base package is > # still in place. > test -e /etc/dnsmasq.d/README || exit 0
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 so when the dnsmasq package is removed but not purged the init script already exits zero. kind regards, Thilo