Viitor_bind/etc/init.d/named
kueller 405a30c898 Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_bind@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

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