[Bug 291186] [NEW] disabling dnsmasq in /etc/default/dnsmaq disables init.d script

didgethesky didgethesky at gmx.net
Thu Oct 30 17:38:32 GMT 2008


Public bug reported:

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.

** Affects: dnsmasq (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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
+ 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.

-- 
disabling dnsmasq in /etc/default/dnsmaq disables init.d script
https://bugs.launchpad.net/bugs/291186
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dnsmasq in ubuntu.



More information about the Ubuntu-server-bugs mailing list