bind9/bin/tests/system/stop.sh
2000-05-18 22:49:29 +00:00

24 lines
295 B
Bash

#!/bin/sh
#
# Stop name servers.
#
cd $1
for d in ns*
do
pidfile="$d/named.pid"
if [ -f $pidfile ]; then
kill -TERM `cat $pidfile`
fi
done
sleep 5
for d in ns*
do
pidfile="$d/named.pid"
if [ -f $pidfile ]; then
kill -KILL `cat $pidfile`
fi
done