Activity log for bug #291186

Date Who What changed Old value New value Message
2008-10-30 17:38:32 didgethesky bug added bug
2008-10-30 17:40:04 didgethesky description Binary package hint: dnsmasq Ubuntu 8.04, package dnsmasq Setting "ENALED=0" in /etc/default/dnsmaq to prevent dnsmasq from starting at next boot time completely disables the /etc/init.d/dnsmasq script. That script contains the line test "$ENABLED" != "0" || exit 0 near its beginning and therefore never evaluates its start/stop/restart parameter. I don't think this is the intended/expected behavior. Example: I wanted to stop dnsmasq on my box and keep it deactivated on further reboots because I introduced a new dhcp server to my network. Not seeing any reason for a special order I first set ENABLED=0 and then did "sudo /etc/init.d/dnsmasq stop". After getting wrongly assigned ip adresses I rechecked and found the dnsmasq process still running. To stop it (the "official" way) I had to set ENABLED=1 again. In my opinion, disabling the starting of a daemon should not prevent the user from stopping an already running instance. Binary package hint: dnsmasq Ubuntu 8.04, package dnsmasq Setting "ENABLED=0" in /etc/default/dnsmaq to prevent dnsmasq from starting at next boot time completely disables the /etc/init.d/dnsmasq script. That script contains the line test "$ENABLED" != "0" || exit 0 near its beginning and therefore never evaluates its start/stop/restart parameter. I don't think this is the intended/expected behavior. Example: I wanted to stop dnsmasq on my box and keep it deactivated on further reboots because I introduced a new dhcp server to my network. Not seeing any reason for a special order I first set ENABLED=0 and then did "sudo /etc/init.d/dnsmasq stop". After getting wrongly assigned ip adresses I rechecked and found the dnsmasq process still running. To stop it (the "official" way) I had to set ENABLED=1 again. In my opinion, disabling the starting of a daemon should not prevent the user from stopping an already running instance.
2008-10-31 09:57:17 Thierry Carrez dnsmasq: status New Confirmed
2008-10-31 09:57:17 Thierry Carrez dnsmasq: importance Undecided Low
2008-10-31 09:57:17 Thierry Carrez dnsmasq: statusexplanation According to the comment in the file ("Whether or not to run the dnsmasq daemon; set to 0 to disable"), ENABLED should control if the dnsmasq daemon is run at startup, not if the init script is totally disabled, so I tend to agree with the reporter. In particular, running "/etc/init.d/dnsmasq status" would always return 0 if ENABLED=0... and that means "started".
2009-02-13 10:22:55 Thierry Carrez dnsmasq: status Confirmed In Progress
2009-02-13 10:22:55 Thierry Carrez dnsmasq: assignee tcarrez
2009-02-13 10:22:55 Thierry Carrez dnsmasq: statusexplanation According to the comment in the file ("Whether or not to run the dnsmasq daemon; set to 0 to disable"), ENABLED should control if the dnsmasq daemon is run at startup, not if the init script is totally disabled, so I tend to agree with the reporter. In particular, running "/etc/init.d/dnsmasq status" would always return 0 if ENABLED=0... and that means "started". Fixed in Debian >=2.47-1, should be closed by sync (bug 328992)
2009-02-16 14:41:01 Thierry Carrez dnsmasq: status In Progress Fix Released
2009-02-16 14:41:01 Thierry Carrez dnsmasq: statusexplanation Fixed in Debian >=2.47-1, should be closed by sync (bug 328992) Fixed in Jaunty by sync to 2.47-3