summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-05-20 20:56:55 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2014-05-20 20:56:55 +0100
commita754e1d7b240c63b0ce346c5eae3a599122bbfbc (patch)
treeb0c820f5cffbc70ffd21ec181fbc3e321cc6b2b4
parent8e9ffba66e538f3f483ab0d46e5f9fd21d5abf32 (diff)
downloaddnsmasq-a754e1d7b240c63b0ce346c5eae3a599122bbfbc.tar.gz
Debian: Write pid-file in the correct place when using systemd.
-rw-r--r--debian/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/init b/debian/init
index 0a6b176..8eb5535 100644
--- a/debian/init
+++ b/debian/init
@@ -279,6 +279,7 @@ case "$1" in
systemd-exec)
# Enable DBus by default because we use DBus activation with systemd.
exec $DAEMON --keep-in-foreground --enable-dbus \
+ -x /var/run/dnsmasq/$NAME.pid \
${MAILHOSTNAME:+ -m $MAILHOSTNAME} \
${MAILTARGET:+ -t $MAILTARGET} \
${DNSMASQ_USER:+ -u $DNSMASQ_USER} \