#!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin test -x /usr/sbin/named || exit 0 case "$1" in start) echo -n "Starting domain name service: named" ulimit -n 16384 #/usr/sbin/named -4 -t /var/named -u bind /usr/sbin/named -t /var/named -u bind -n 1 -c /etc/namedb/named.conf #/usr/sbin/named -t /var/named -u bind -n 1 -c /etc/namedb/named.conf.bind9.2 #/usr/sbin/named -4 -t /var/named -u bind -c /etc/namedb/named.conf.1 #/usr/sbin/named -4 -t /var/named -u bind -c /etc/namedb/named.conf.2 echo "." ;; stop) echo -n "Stopping domain name service: named" /usr/bin/killall named echo "." ;; restart) /usr/bin/killall named sleep 2 ulimit -n 16384 #/usr/sbin/named -4 -t /var/named -u bind -c /etc/namedb/named.conf.1 #/usr/sbin/named -4 -t /var/named -u bind -c /etc/namedb/named.conf.2 #/usr/sbin/named -t /var/named -u bind -n 2 -n 2 /usr/sbin/named -t /var/named -u bind -n 1 -c /etc/namedb/named.conf #/usr/sbin/named -t /var/named -u bind -n 1 -c /etc/namedb/named.conf.bind9.2 ;; reload) /usr/bin/killall -HUP named ;; force-reload) $0 restart ;; *) echo "Usage: /etc/init.d/bind {start|stop|reload|restart|force-reload}" >&2 exit 1 ;; esac exit 0