Package: dnsmasq
Version: 2.72-2
Severity: serious
Justification: fails to start with default init system

Thanks for maintaining dnsmasq!

When runnning dnsmasq with systemd on a freshly installed system,
without dbus installed, dnsmasq fails to start.  It seems like dnsmasq
should depend or at least recommend dbus if it needs dbus in order to
function on a default install with systemd. Some ugly chain of "dbus |
sysvinit-core | upstart" might also be worth entertaining...


Running systemd without dbus installed:

● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
  Drop-In: /run/systemd/generator/dnsmasq.service.d
           └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   Active: failed (Result: timeout) since Wed 2015-01-28 17:20:30 PST; 7s ago
  Process: 4353 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, 
status=0/SUCCESS)
  Process: 4350 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
 Main PID: 4353 (code=exited, status=0/SUCCESS)

Jan 28 17:19:00 testprop dnsmasq[4353]: compile time options: IPv6 GNU-getopt 
DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect
Jan 28 17:19:00 testprop dnsmasq[4353]: DBus support enabled: bus connection 
pending
Jan 28 17:19:00 testprop dnsmasq[4353]: DNS service limited to local subnets
Jan 28 17:19:00 testprop dnsmasq-dhcp[4353]: DHCP, IP range 192.168.99.20 -- 
192.168.99.250, lease time 1h
Jan 28 17:19:00 testprop dnsmasq[4353]: reading /etc/resolv.conf
Jan 28 17:19:00 testprop dnsmasq[4353]: using nameserver 192.168.122.1#53
Jan 28 17:19:00 testprop dnsmasq[4353]: read /etc/hosts - 5 addresses
Jan 28 17:20:30 testprop systemd[1]: dnsmasq.service start operation timed out. 
Terminating.
Jan 28 17:20:30 testprop dnsmasq[4353]: exiting on receipt of SIGTERM
Jan 28 17:20:30 testprop systemd[1]: Failed to start dnsmasq - A lightweight 
DHCP and caching DNS server.
Jan 28 17:20:30 testprop systemd[1]: Unit dnsmasq.service entered failed state.


After running apt-get install dbus, it works fine:

● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
  Drop-In: /run/systemd/generator/dnsmasq.service.d
           └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   Active: active (running) since Wed 2015-01-28 17:17:50 PST; 4s ago
  Process: 4099 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf 
(code=exited, status=0/SUCCESS)
  Process: 4093 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
 Main PID: 4095 (dnsmasq)
   CGroup: /system.slice/dnsmasq.service
           └─4095 /usr/sbin/dnsmasq --keep-in-foreground --enable-dbus -x 
/var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 
/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service

Jan 28 17:17:50 testprop dnsmasq[4093]: dnsmasq: syntax check OK.
Jan 28 17:17:50 testprop dnsmasq[4095]: started, version 2.72 cachesize 150
Jan 28 17:17:50 testprop dnsmasq[4095]: compile time options: IPv6 GNU-getopt 
DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect
Jan 28 17:17:50 testprop dnsmasq[4095]: DBus support enabled: connected to 
system bus
Jan 28 17:17:50 testprop dnsmasq[4095]: DNS service limited to local subnets
Jan 28 17:17:50 testprop dnsmasq-dhcp[4095]: DHCP, IP range 192.168.99.20 -- 
192.168.99.250, lease time 1h
Jan 28 17:17:50 testprop dnsmasq[4095]: reading /etc/resolv.conf
Jan 28 17:17:50 testprop dnsmasq[4095]: using nameserver 192.168.122.1#53
Jan 28 17:17:50 testprop dnsmasq[4095]: read /etc/hosts - 5 addresses




live well,
  vagrant


-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dnsmasq depends on:
ii  dnsmasq-base         2.72-2
ii  init-system-helpers  1.22
ii  netbase              5.3

dnsmasq recommends no packages.

Versions of packages dnsmasq suggests:
pn  resolvconf  <none>

-- Configuration Files:
/etc/dnsmasq.conf changed:
dhcp-range=192.168.99.20,192.168.99.250,1h


-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to