diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2015-02-12 18:30:32 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2015-02-12 18:30:32 +0000 |
commit | ee4d1cea92b62e6ad185fc7ce52de007e79a6b23 (patch) | |
tree | 5e4e6cc445c2e34b70568147d465a25add09d80f | |
parent | f4f400776b3c1aa303d1a0fcd500f0ab5bc970f2 (diff) | |
download | dnsmasq-ee4d1cea92b62e6ad185fc7ce52de007e79a6b23.tar.gz |
Debian systemd fixes.
-rw-r--r-- | debian/changelog | 14 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/init | 4 | ||||
-rw-r--r-- | debian/systemd.service | 9 |
4 files changed, 16 insertions, 13 deletions
diff --git a/debian/changelog b/debian/changelog index d75766b..1c52e98 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,7 +6,19 @@ dnsmasq (2.73-1) unstable; urgency=low * Add newline at the end of example config file. (LP: #1416895) * Make Debian package build reproducible. (closes: #777323) - -- Simon Kelley <simon@thekelleys.org.uk> Mon, 09 Feb 2015 11:50:42 +0000 + -- Simon Kelley <simon@thekelleys.org.uk> Wed, 11 Feb 2015 21:59:42 +0000 + +dnsmasq (2.72-3) unstable; urgency=medium + + * debian/systemd.service: switch from Type=dbus to Type=forking. + dnsmasq does not depend on dbus, but Type=dbus systemd services cannot + work without it. (Closes: #769486, #776530) + - debian/init: when called with systemd-exec argument, let dnsmasq + go into the background, so Type=forking can detect when it is ready + * Remove line containing only whitespace in debian/contol. + (closes: #777571) + + -- Simon Kelley <simon@thekelleys.org.uk> Wed, 11 Feb 2015 21:56:12 +0000 dnsmasq (2.72-2) unstable; urgency=low diff --git a/debian/control b/debian/control index 6ed259d..f44a562 100644 --- a/debian/control +++ b/debian/control @@ -42,5 +42,3 @@ Description: Utilities for manipulating DHCP leases Small utilities to query a DHCP server's lease database and remove leases from it. These programs are distributed with dnsmasq and may not work correctly with other DHCP servers. - - diff --git a/debian/init b/debian/init index f4df909..dc45d38 100644 --- a/debian/init +++ b/debian/init @@ -293,9 +293,7 @@ case "$1" in mkdir /var/run/dnsmasq || return 2 chown dnsmasq:nogroup /var/run/dnsmasq || return 2 fi -# Enable DBus by default because we use DBus activation with systemd. - exec $DAEMON --keep-in-foreground --enable-dbus \ - -x /var/run/dnsmasq/$NAME.pid \ + exec $DAEMON -x /var/run/dnsmasq/$NAME.pid \ ${MAILHOSTNAME:+ -m $MAILHOSTNAME} \ ${MAILTARGET:+ -t $MAILTARGET} \ ${DNSMASQ_USER:+ -u $DNSMASQ_USER} \ diff --git a/debian/systemd.service b/debian/systemd.service index 65929dd..aca30dc 100644 --- a/debian/systemd.service +++ b/debian/systemd.service @@ -2,8 +2,8 @@ Description=dnsmasq - A lightweight DHCP and caching DNS server [Service] -Type=dbus -BusName=uk.org.thekelleys.dnsmasq +Type=forking +PIDFile=/var/run/dnsmasq/dnsmasq.pid # Test the config file and refuse starting if it is not valid. ExecStartPre=/usr/sbin/dnsmasq --test @@ -11,11 +11,6 @@ ExecStartPre=/usr/sbin/dnsmasq --test # We run dnsmasq via the /etc/init.d/dnsmasq script which acts as a # wrapper picking up extra configuration files and then execs dnsmasq # itself, when called with the "systemd-exec" function. -# -# It also adds the command-line flags -# --keep-in-foreground --enable-dbus -# to enable DBus by default because we use DBus activation. -# ExecStart=/etc/init.d/dnsmasq systemd-exec # The systemd-*-resolvconf functions configure (and deconfigure) |