7af35d8c25
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_bind@4350 504e572c-2e33-0410-9681-be2bf7408885
36 lines
575 B
Bash
36 lines
575 B
Bash
#!/bin/bash
|
|
#
|
|
# Startscript for named bind v8
|
|
# (c) RainMaker Multimedia OHG
|
|
# Autor: Harald Küller
|
|
#
|
|
# Datum: 28.01.2001
|
|
|
|
source /etc/init.d/functions
|
|
|
|
VERSION=`/usr/sbin/named -v`
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -f /etc/named.conf ]; then
|
|
echo -n "Starting Name Server named ($VERSION)"
|
|
/usr/sbin/named
|
|
evaluate_retval
|
|
fi
|
|
;;
|
|
stop)
|
|
if [ -f /etc/named.conf ]; then
|
|
echo -n "Stopping Names Srver named ($VERSION)"
|
|
pkill -f /usr/sbin/named
|
|
evaluate_retval
|
|
fi
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "USAGE: $0 {start|stop|restart}"
|
|
esac
|