summaryrefslogtreecommitdiff
path: root/source/n
diff options
context:
space:
mode:
Diffstat (limited to 'source/n')
-rwxr-xr-xsource/n/dnsmasq/dnsmasq.SlackBuild2
-rw-r--r--source/n/dnsmasq/doinst.sh3
-rw-r--r--source/n/dnsmasq/rc.dnsmasq9
3 files changed, 9 insertions, 5 deletions
diff --git a/source/n/dnsmasq/dnsmasq.SlackBuild b/source/n/dnsmasq/dnsmasq.SlackBuild
index 29a79927..329ca627 100755
--- a/source/n/dnsmasq/dnsmasq.SlackBuild
+++ b/source/n/dnsmasq/dnsmasq.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=dnsmasq
VERSION=${VERSION:-$(echo dnsmasq-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
EXTRA_BUILD_OPTS=${EXTRA_BUILD_OPTS:-"-DHAVE_DNSSEC -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_CONNTRACK"}
diff --git a/source/n/dnsmasq/doinst.sh b/source/n/dnsmasq/doinst.sh
index 9aadc3e5..92914eb3 100644
--- a/source/n/dnsmasq/doinst.sh
+++ b/source/n/dnsmasq/doinst.sh
@@ -21,6 +21,3 @@ preserve_perms() {
}
config etc/dnsmasq.conf.new
preserve_perms etc/rc.d/rc.dnsmasq.new
-
-# This should be mostly useless...
-rm -f etc/rc.d/rc.dnsmasq.new
diff --git a/source/n/dnsmasq/rc.dnsmasq b/source/n/dnsmasq/rc.dnsmasq
index ce584cbd..f19a1723 100644
--- a/source/n/dnsmasq/rc.dnsmasq
+++ b/source/n/dnsmasq/rc.dnsmasq
@@ -11,7 +11,14 @@ dnsmasq_start() {
# Stop dnsmasq:
dnsmasq_stop() {
- killall dnsmasq
+ # Try to use the .pid file first:
+ if pgrep -l -F /var/run/dnsmasq.pid 2> /dev/null | grep -q dnsmasq ; then
+ echo "Stopping dnsmasq."
+ pkill -F /var/run/dnsmasq.pid 2> /dev/null
+ else # kill any dnsmasq processes in this namespace:
+ echo "Stopping dnsmasq."
+ killall --ns $$ dnsmasq 2> /dev/null
+ fi
}
# Restart dnsmasq: