summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-05-09 20:47:09 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2014-05-11 17:43:29 +0100
commita23949d44d860cb98e82c22b94b5756fc43eccbb (patch)
tree87fa2149fa7dcc3ff8ce8805eb707907c454c506
parentb692f23466eb28ceed42c4e1d312707636afff09 (diff)
downloaddnsmasq-a23949d44d860cb98e82c22b94b5756fc43eccbb.tar.gz
Debian change: write pid-file even using systemd.
-rw-r--r--debian/changelog7
-rw-r--r--debian/init3
-rw-r--r--debian/systemd.service5
3 files changed, 10 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 3c98631..605a3f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dnsmasq (2.70-3) unstable; urgency=low
+
+ * Write a pid-file, even when being started using systemd, since
+ other components may wish to signal dnsmasq.
+
+ -- Simon Kelley <simon@thekelleys.org.uk> Fri, 09 May 2014 20:45:11 +0000
+
dnsmasq (2.70-2) unstable; urgency=low
* Ensure daemon not stared if dnsmasq package has been removed,
diff --git a/debian/init b/debian/init
index 3db7dca..0a6b176 100644
--- a/debian/init
+++ b/debian/init
@@ -277,9 +277,8 @@ case "$1" in
stop_resolvconf
;;
systemd-exec)
-# --pid-file without argument disables writing a PIDfile, we don't need one with sytemd.
# Enable DBus by default because we use DBus activation with systemd.
- exec $DAEMON --keep-in-foreground --pid-file --enable-dbus \
+ exec $DAEMON --keep-in-foreground --enable-dbus \
${MAILHOSTNAME:+ -m $MAILHOSTNAME} \
${MAILTARGET:+ -t $MAILTARGET} \
${DNSMASQ_USER:+ -u $DNSMASQ_USER} \
diff --git a/debian/systemd.service b/debian/systemd.service
index d75ab62..284e535 100644
--- a/debian/systemd.service
+++ b/debian/systemd.service
@@ -13,9 +13,8 @@ ExecStartPre=/usr/sbin/dnsmasq --test
# itself, when called with the "systemd-exec" function.
#
# It also adds the command-line flags
-# --keep-in-foreground --pid-file --enable-dbus
-# to disable writing a pid-file (not needed with systemd) and
-# enable DBus by default because we use DBus activation.
+# --keep-in-foreground --enable-dbus
+# to enable DBus by default because we use DBus activation.
#
ExecStart=/etc/init.d/dnsmasq systemd-exec