1.named.sh 399 Bytes
Newer Older
1 2 3
#!/bin/sh

case "$1" in
4
	start|faststart|quietstart|onestart|forcestart)
5 6 7 8 9
		if [ -x /usr/local/sbin/named ]; then
			sleep 1
		        /usr/local/sbin/named -c /etc/namedb/named.conf
		fi
		;;
10
	stop|faststop|quietstop|onestop|forcestop)
11 12 13 14 15 16 17 18 19 20 21 22 23 24
		/usr/bin/killall named > /dev/null 2>&1 && echo -n ' named'
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac