1 From 332c41e2ff533649dc48b6bab00804d795f348f5 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Sun, 1 May 2016 22:36:46 +0100
4 Subject: [PATCH] Debian init.d script fix.
7 debian/changelog | 8 +++++---
8 debian/init | 14 +++++++-------
9 2 files changed, 12 insertions(+), 10 deletions(-)
11 diff --git a/debian/changelog b/debian/changelog
12 index e727406..8a0341c 100644
13 --- a/debian/changelog
14 +++ b/debian/changelog
15 @@ -3,19 +3,21 @@ dnsmasq (2.76-1) unstable; urgency=low
16 * New upstream. (closes: #798586)
17 * Use /run/dnsmasq directly, rather than relying on link from /var/run
18 to avoid problems before /var is mounted. (closes: #800351)
20 + * Test for the existance of /usr/share/doc/dnsmasq rather then
21 + /etc/dnsmasq.d/README in the daemon startup script. (closes: #819856)
23 -- Simon Kelley <simon@thekelleys.org.uk> Thur, 10 Sep 2015 23:07:21 +0000
25 dnsmasq (2.75-1) unstable; urgency=low
27 * New upstream. (closes: #794095)
30 -- Simon Kelley <simon@thekelleys.org.uk> Thur, 30 Jul 2015 20:58:31 +0000
32 dnsmasq (2.74-1) unstable; urgency=low
34 * New upstream. (LP: #1468611)
37 -- Simon Kelley <simon@thekelleys.org.uk> Wed, 15 Jul 2015 21:54:11 +0000
39 dnsmasq (2.73-2) unstable; urgency=low
40 diff --git a/debian/init b/debian/init
41 index 6afe191..10b277c 100644
45 # Description: DHCP and DNS server
48 -set +e # Don't exit on error status
49 +# Don't exit on error status
52 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
53 DAEMON=/usr/sbin/dnsmasq
54 @@ -29,12 +30,11 @@ if [ -r /etc/default/locale ]; then
58 -# /etc/dnsmasq.d/README is a non-conffile installed by the dnsmasq package.
59 -# Should the dnsmasq package be removed, the following test ensures that
60 -# the daemon is no longer started, even if the dnsmasq-base package is
62 -test -e /etc/dnsmasq.d/README || exit 0
64 +# The following test ensures the dnsmasq service is not started, when the
65 +# package 'dnsmasq' is removed but not purged, even if the dnsmasq-base
66 +# package is still in place.
67 +test -d /usr/share/doc/dnsmasq || exit 0
69 test -x $DAEMON || exit 0
71 # Provide skeleton LSB log functions for backports which don't have LSB functions.