Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #export PATH=/usr/local/bind9/bin/:/usr/local/bind9/sbin/:$PATH
- #chown root:root /usr/local/bind9/sbin/named
- # No Debian adicionar no /etc/rc.local
- # /etc/init.d/named.sh start
- # chmod 755 /etc/init.d/named.sh
- # chmod +x /etc/init.d/named.sh
- start() {
- /usr/local/bind9/sbin/named
- echo "Bind 9 started OK";
- }
- stop() {
- killall named
- echo "Bind 9 stop OK";
- }
- status(){
- ps aux | grep named
- }
- case "$1" in
- "start") start ;;
- "stop") stop ;;
- "restart") stop; sleep 3; start ;;
- "status") status ;;
- *)
- echo "Use: start|stop|restart|status";
- esac
Advertisement
Add Comment
Please, Sign In to add comment