#!/bin/sh ######################################################################## # Begin bind # # Description : Start Berkeley Internet Name Daemon # # Author : DJ Lucas - dj@linuxfromscratch.org # Bruce Dubbs - bdubbs@linuxfromscratch.org # # Version : BLFS 7.0 # ######################################################################## ### BEGIN INIT INFO # Provides: bind # Required-Start: $time $network # Should-Start: networkmanager wicd # Required-Stop: $network # Should-Stop: networkmanager wicd # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts the ISC named DNS service # Description: Provides a DNS daemon in a chroot environment # X-LFS-Provided-By: BLFS ### END INIT INFO . /lib/lsb/init-functions case "$1" in start) log_info_msg "Starting named..." start_daemon /usr/sbin/named -u named -t /srv/named -c /etc/named.conf evaluate_retval ;; stop) log_info_msg "Stopping named..." killproc /usr/sbin/named evaluate_retval ;; restart) $0 stop sleep 1 $0 start ;; reload) log_info_msg "Reloading named..." /usr/sbin/rndc -c /etc/rndc.conf reload evaluate_retval ;; status) statusproc /usr/sbin/named ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac # End /etc/init.d/bind