summaryrefslogtreecommitdiff
path: root/package/bind/files/named.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/bind/files/named.init')
-rw-r--r--package/bind/files/named.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/bind/files/named.init b/package/bind/files/named.init
index b2052c1d3..c3ad09d85 100644
--- a/package/bind/files/named.init
+++ b/package/bind/files/named.init
@@ -11,11 +11,11 @@ autostop) ;;
;;
start)
if [ -f /etc/bind/named.conf ]; then
- named -c /etc/bind/named.conf
+ /usr/sbin/named -c /etc/bind/named.conf
fi
;;
stop)
- pkill named
+ kill $(pgrep -f /usr/sbin/named)
;;
restart)
sh $0 stop